Jump to content

Positioning the FileOpenDialog window.


Recommended Posts

you can always cheat :whistle:

; 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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...