Jump to content
Sign in to follow this  

First autoit script, switching active windows with same name

Recommended Posts


This is the first time I have ever done any type of coding and scripting, so please forgive my newbiness.
I currently have this:





It essentially is a very simple autoclicker that works ever 5 seconds and loops continuously.

Now I want it to switch to another window, send a few buttons, then switch back to the original window.

The problem I am having is that the window is exactly the same as the original window (running two instances of the same game), so I have no way to distinguish between the two. How would I use the command winactivate?

Another issue is that it is a game, and requires me to press "alt" key in order for mouse to actual be usable in game.

Again, I am a complete newb at this, and would just like some simple and clear instructions on how to do this.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.