Jump to content

How To Get Autoit To Tab Until A Spec. Page


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...