Sign in to follow this  
Followers 0
falslev

How To Get Autoit To Tab Until A Spec. Page

6 posts in this topic

I want autoit to ALT+TAB through my active programs until it meets a specifed program.

Please help

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

That will do but how du i alt+tab?

Can you give me an example?

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thank you booth :D

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