Sign in to follow this  
Followers 0
MariusN

giving focus to script

5 posts in this topic

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 :mellow:

Share this post


Link to post
Share on other sites



Look for WinSetOnTop() in the help file

whim

Share this post


Link to post
Share on other sites

Look for WinSetOnTop() in the help file

whim

thanks spammer :mellow:

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by MariusN

Share this post


Link to post
Share on other sites

Hey spammer...you were correct...i had the WinSetOnTop ABOVE the gui instead of below it...thx for the advice :mellow:

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