ThriftyPo Posted February 9, 2014 Share Posted February 9, 2014 This is the first time I have ever done any type of coding and scripting, so please forgive my newbiness. I currently have this: While(1) MouseClick('left') Sleep(5000) WEnd 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 9, 2014 Developers Share Posted February 9, 2014 Another issue is that it is a game Please read out forum rules before posting again. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts