Sign in to follow this  
Followers 0
hesautoit

help winwaitactive

11 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

I think using class is more effective..I always use it but sometimes, they had the same class...so, u need to make it more specific


AUTOIT[sup] I'm lovin' it![/sup]

Share this post


Link to post
Share on other sites

can direct me some link or samples to learn class? no clue wad is it.. hhaahaa..

thanks.

Share this post


Link to post
Share on other sites

I think using class is more effective..I always use it but sometimes, they had the same class...so, u need to make it more specific

if they have a same class, wad do u look out for?

Share this post


Link to post
Share on other sites

The class, and the instance. look for them or ClassNN... :D

thanks but how do u put them together?

WinWait("AxCrypt - Encrypt/Compress/Edit", "", "Class", "Instance") ??

like tat?

Share this post


Link to post
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]", "")

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Its there for the unmoronics (a person that is not a moron :P) who read it.

haaahhaa.. thanks i go read it next time :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