BlueScreen Posted December 10, 2003 Share Posted December 10, 2003 Hey, I was wondering if there is a way to position the FileOpenDialog window on the screen. 10x Link to comment Share on other sites More sharing options...
scriptkitty Posted December 10, 2003 Share Posted December 10, 2003 (edited) you can always cheat ; new1.au3 before compile winwaitactive("Choose a file.") WinMove ( "Choose a file.", "", 100, 100) run("new1.exe") $var = FileOpenDialog( "Choose a file.", "c:\program files", "My Files (*.au3)", 1 + 4 ) or get more complex: ; new1.au3 before compile winwaitactive("Choose a file.") if $CmdLine[0] >0 then WinMove ( "Choose a file.", "", $CmdLine[1] , $CmdLine[2] ) else WinMove ( "Choose a file.", "", 100, 100) endif run('new1.exe 100 200 ') $var = FileOpenDialog( "Choose a file.", "c:\program files", "My Files (*.au3)", 1 + 4 ) or even: AutoItSetOption("ExpandEnvStrings", 1) $arguments="100 200" FileInstall(".\new1.exe", "%temp%\new1.exe") run("%TEMP%\new1.exe " & $Arguments, "%temp%", @SW_HIDE ) $var = FileOpenDialog( "Choose a file.", "c:\program files", "My Files (*.au3)", 1 + 4 ) ;Delete the new1.exe file. FileDelete ("%TEMP%\new1.exe") Anyway that is off the top of my head. I did a similar thing a few times. Edited December 10, 2003 by scriptkitty SapereAude 1 AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
BlueScreen Posted December 11, 2003 Author Share Posted December 11, 2003 ScriptKitty, Thanks alot! That did the job! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now