Sign in to follow this  
Followers 0
alawoona

Fileopendialog Question

4 posts in this topic

I have an AU3GUI window open and my script asks for the OpenFileDialog window. It does, but open file dialog window is always behind my AU3GUI window - is there any way I can have my script bring it to the foreground?

Share this post


Link to post
Share on other sites



you could do a WinSetState ("au3gui title","",@SW_HIDE ) before you do the FileOpenDialog and then do a WinSetState ("au3gui title","",@SW_SHOW).


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

This will cause AutoIt 3's window to flicker for a moment, but this should guarantee your FileOpenDialog to be on top.

Opt("WinWaitDelay", 1); We need speed!
WinActivate(AutoItWinGetTitle())
WinSetState(AutoItWinGetTitle(), "", @SW_HIDE)
FileOpenDialog("Blah", "Blah", "All (*.*)")
Opt("WinWaitDelay", 250); Back to default
Edited by Valik

Share this post


Link to post
Share on other sites

thanx - works

Share this post


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
Sign in to follow this  
Followers 0