Sign in to follow this  
Followers 0
johnyV

windows with the same title

6 posts in this topic

I have multiple windows (4) with the same title. unfortunetly what ever text I put in the ''WinWait'' or ''WinWaitactivate'' command its not reading it, Ive tried putting it copy pastes of auto info tool, I used the Au3 recorder, I tried make a single delimited string. It looks at it and it laughs in my face.

this is for an automated installation procedure.

What happens:

A. A loading window appears with the title ''Installation...''

B. A second window appears with the same title ''Installation''

C. A mid installation window telling me to press ''OK'' because it will put a shortcut of the program on my desktop.

D. step ''B'' continues.

E. A second messagebox appears with a ''yes'' and ''no'' answer to choose from.

F. Step ''B'' continues.

G. The last window appears with a totaly different tittle :mellow: .

I need a way to send and enter command to both those message boxes that appear in step ''C'' and ''E''.

Share this post


Link to post
Share on other sites



Help File quote:

WinWait

--------------------------------------------------------------------------------

Pauses execution of the script until the requested window exists.

WinWait ( "title" [, "text" [, timeout]] )

Parameters

title The title of the window to check. See Title special definition.

text [optional] The text of the window to check.

timeout [optional] Timeout in seconds

You can notice a second parameter to help with window identification: TEXT

The text content will make the difference between 2 windows with the same title. Don't be afraid to use it if AutoIt Window Info tool returns clear text for these windows.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

screenshots? AU3Info screenshots?


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

enaiman, I tried using the Visible text tab from auinfo but it does not work. The script keeps running no matter wat text I put in the command ''winwaitactive''

Larry,

1st print screen

step A appears and disapears in a matter of seconds.

Any action that I put in my script to happen for step ''C'' will happen in step A.

2nd print screen

The auinfo tool with the ''visible text'' of the message box that appears. Behind it, is the installation window that stays open while the message box appears.

The installation window behind the auinfo tool is processing there for the text changes.

On the bottom right, is window step ''B'' and in the middle is window step ''C''.

post-42900-1227190993_thumb.jpg

post-42900-1227191695_thumb.jpg

Share this post


Link to post
Share on other sites

It will be easier to post your code here.

You don't need the full title or full window text - just use what is unique to every window (it could be very well a single word). Also, it might be useful to use Opt("WinTitleMatchMode", 2) - that will match any substring.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Problem resolved, thanks for trying to help. :mellow:

The problem was not the strings, it was the [, timeout]] ).

WinWait ( "title" [, "text" [, timeout]] )

for some reason the timeout was making the command skip the "text" .

solution = take out the timeout.

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