falslev Posted May 9, 2004 Posted May 9, 2004 I want autoit to ALT+TAB through my active programs until it meets a specifed program. Please help
pekster Posted May 9, 2004 Posted May 9, 2004 (edited) Do you have a need to alt-tab? Why not just use the WinWaitActive() function? WinWaitActive( "title", ["text"], [timeout] ) Pauses execution of the script until the requested window is active.Once you find it, just do a WinActivate("title of your window") call. Edited to add in a missing space between words Edited May 9, 2004 by pekster [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
falslev Posted May 9, 2004 Author Posted May 9, 2004 That will do but how du i alt+tab? Can you give me an example?
pekster Posted May 9, 2004 Posted May 9, 2004 (edited) Alt+Tab keystroke example ;some code here Send(!{TAB});send a single alt-tab combo ;more code could go here Send({ALTDOWN}{TAB}{TAB}{ALTUP});this will hold alt down and press tab twice ;we can use that to go to the 2nd most recent window instead of the first Edited to correct a commented statement that I messed up Edited May 9, 2004 by pekster [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
SlimShady Posted May 9, 2004 Posted May 9, 2004 That will do but how du i alt+tab? Can you give me an example?Here's an example: AutoItSetOption("SendKeyDelay", 1500) Send("{ALTDOWN}") Send("{TAB 4}");===== Change 4 to how many times to press Tab Send("{ALTUP}") It's all in the help file.
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