tkjerulf Posted October 11, 2006 Share Posted October 11, 2006 Hi I need to make a script, that checks if a specific GUI gets focus - Using this one: GUISetOnEvent($GUI_EVENT_MOUSEMOVE, "LostFocus") i can check if the mouse moves, but how do i check if the running GUI looses focus? or is it even possible? kind T Link to comment Share on other sites More sharing options...
MrBeatnik Posted October 11, 2006 Share Posted October 11, 2006 (edited) Perhaps this will do it: If NOT WinActive("window_name") Edited October 11, 2006 by MrBeatnik Please correct me if I am wrong in any of my posts. I like learning from my mistakes too. Link to comment Share on other sites More sharing options...
tkjerulf Posted October 11, 2006 Author Share Posted October 11, 2006 Perhaps this will do it:If NOT WinActive("window_name")Thanks alot, worked great, was getting toooooo focused on using the eventmanager, used above within the idle routine.much thanks. 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