Sign in to follow this  
Followers 0
The713

Gui Focus Help

3 posts in this topic

My program is pretty much a macro for a text based IE game, so far everything is running smoothly, but it you click to fast it will send an error messege to you. My gui coords are based off the GUI in focus. when the messege pops up it takes focus off the gui thus messing with my scripts coordinates, I need a way to fix this by either detecting the messege box and send enter or someother way, any snippets that may help? Much Appreciated

- Andrew (The713)

Share this post


Link to post
Share on other sites



You can use WinActivate for this. Just call it before you send any keys/mouse clicks to the window.

Alright Thanks,

Share this post


Link to post
Share on other sites

My program is pretty much a macro for a text based IE game, so far everything is running smoothly, but it you click to fast it will send an error messege to you. My gui coords are based off the GUI in focus. when the messege pops up it takes focus off the gui thus messing with my scripts coordinates, I need a way to fix this by either detecting the messege box and send enter or someother way, any snippets that may help? Much Appreciated

- Andrew (The713)

You can use WinActivate for this. Just call it before you send any keys/mouse clicks to the window.

Auto3Lib: A library of over 1200 functions for AutoIt

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