Jump to content
Sign in to follow this  
Alexxander

GUI on top on top of windows 7 start menu

Recommended Posts

Alexxander

hi

is it possible to make a GUI on top of everything even on top of start menu of windows 7 ?

so if my script is running and the user pressed start menu my script GUI will be on the top of start menu 

 


Share this post


Link to post
Share on other sites
DW1

Sure,

#include <WindowsConstants.au3>
#include <GUIConstants.au3>
$hGUI = GUICreate('test', 400, 400, Default, Default, Default, $WS_EX_TOPMOST)
GUISetState()
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

EndSwitch
    ;This line is here so that if other on top windows like the taskbar or task manager go over our window, we take the top back
    WinSetOnTop($hGUI, '', 1)
WEnd
  • Like 1

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  

×