TMoney777 Posted November 25, 2015 Posted November 25, 2015 Hi new to autoit been able to get my script to press 0 at intervals but now I want to have it do so on alternating programs. Got a script looking like this.Send ("0")Sleep ("27000")Send ("{Alt down}")Sleep ("1000")Send ("{TAB}")Sleep ("1000")Send ("{Alt up}")Sleep ("1000")Send ("0")Sleep ("27000")Send ("{Alt down}")Sleep ("1000")Send ("{TAB}")Sleep ("1000")Send ("{Alt up}")Sleep ("1000")Presses 0 then holds down Alt for a couple seconds but does not actually press tab.
topten Posted November 25, 2015 Posted November 25, 2015 Using these keys for some reasons may make your scripts quite messy. What are you trying to achieve? May be there is a more reliable way to do that....
Xandy Posted November 25, 2015 Posted November 25, 2015 (edited) Yeah I don't know what you're doing but I'd use a WinActivate($win_title) to switch window focus.example:WinActivate("readme.txt - Notepad"); Where 'readme.txt - Notepad' equals the title string of the window you want to focus. Edited November 25, 2015 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
TMoney777 Posted November 25, 2015 Author Posted November 25, 2015 Trying to switch between 2 running files of the same video games and have it do the same task over and over on both.
TMoney777 Posted November 25, 2015 Author Posted November 25, 2015 I could probably also just do it with mouse clicks but am having a tough time figuring that one out too.
TMoney777 Posted November 25, 2015 Author Posted November 25, 2015 Cancel that managed to figure out the mouse thing. =) Working now.
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