Jump to content
Sign in to follow this  

GUI Windows + Always On Top

Recommended Posts


I have created a massive GUI (for me anyways) which is 3500+ lines spread over 10 includes and just added the AlwaysOnTop function to the GUI [$WS_EX_TOPMOST]

and just discovered (knew but had forgotton that AutoIT) that ALL my popup windows: FileSelectFolder, FileOpenDialog, FileSaveDialog, MsgBox etc... all sit behind the GUI. I know that I need to link them to the GUI by adding the $hwnd eg. MsgBox(0, $title, $text, $timeout, $hwnd) - just wondering if there is another way of achieving this results without having to go through all lines of code and updating each one manually like eg. BitOR($WS_EX_TOPMOST, $WS_EX_TOPMOST_ALLPOPUPS) etc. ?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.