Jump to content

help winwaitactive


Recommended Posts

hi,

need help.

pls take a look at the pic. both the window have the same title.. so how do i choose the top window?

Posted Image

thanks in advance.

CODE
WinWaitActive("Installer Language")

Send("{ENTER}")

WinWaitActive("AxCrypt - Encrypt/Compress/Edit")

Send("!a")

WinWaitActive("AxCrypt - Encrypt/Compress/Edit")

Send("{TAB}")

Send("{DOWN}")

Send("{DOWN}")

SEND("!n")

WinWaitActive("AxCrypt - Encrypt/Compress/Edit")

Send("!n")

WinWaitActive("AxCrypt - Encrypt/Compress/Edit", "&Install")

Send("!i")

WinWait("AxCrypt - Encrypt/Compress/Edit") ;the image shows here. same title.

Send("!n")

WinWait("AxCrypt - Encrypt/Compress/Edit")

Send("!y")

WinWaitActive("AxCrypt - Encrypt/Compress/Edit")

Send("!n")

WinWaitActive("AxCrypt - Encrypt/Compress/Edit")

Send("{SPACE}")

Send("!f")

Edited by hesautoit
Link to comment
Share on other sites

hi,

need help.

pls take a look at the pic. both the window have the same title.. so how do i choose the top window?

thanks in advance.

You can add text to make it more specific: WinWaitActive("Your Window Title", "Some window text")

Since you are looking at it in AU3Info already, is the CLASS the same?

:D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Helpfile is your friend...

e.g. Wait for the 2nd instance of a window with title "My Window" and classname "My Class"

WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "")
Link to comment
Share on other sites

Helpfile is your friend...

e.g. Wait for the 2nd instance of a window with title "My Window" and classname "My Class"

WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "")
What's the point in having a help file if no one reads it?

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

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...