MariusN Posted February 15, 2010 Share Posted February 15, 2010 I have compiled a script that warns if an internet connection gets disabled. The message is a Gui Window that pops up. What i would like to know is, how do i make it to stay as a primary window? What i mean is, lets say a guy watches a movie and the window gets triggered...At the moment it looses focus...I want it to pop up and show and not hiding beneath the movie screen Link to comment Share on other sites More sharing options...
whim Posted February 15, 2010 Share Posted February 15, 2010 Look for WinSetOnTop() in the help file whim Link to comment Share on other sites More sharing options...
MariusN Posted February 15, 2010 Author Share Posted February 15, 2010 Look for WinSetOnTop() in the help filewhimthanks spammer Link to comment Share on other sites More sharing options...
MariusN Posted February 15, 2010 Author Share Posted February 15, 2010 (edited) I keep getting a "Focus lost to autoit3.exe" this is the settings i used...first one, then both simultaneously WinSetState("Welcome !!!", "", @SW_SHOW) WinSetOnTop("Welcome !!!", "", 1) any other ideas? ( its a "guicreate" that i need to overwrite any other windows screens thats open as well as while mediaplayer is playing...Even if you click on other "Windows's" screens it must still be "dominant")...if its possible? Edited February 15, 2010 by MariusN Link to comment Share on other sites More sharing options...
MariusN Posted February 15, 2010 Author Share Posted February 15, 2010 Hey spammer...you were correct...i had the WinSetOnTop ABOVE the gui instead of below it...thx for the advice Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now