Jump to content

Recommended Posts

Posted

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?

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

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...