Sign in to follow this  
Followers 0
muralla

winwait for 2 windows

6 posts in this topic

Hi all ¡¡¡

I want winwait for one window... In one case it can be window A and in the other case it can be window B

I have tryed using winwait windowa OR winwait windowb but it not works.

Can anyone help me with a easy code to solve this?

Thanks all¡¡¡

Share this post


Link to post
Share on other sites



Hi all ¡¡¡

I want winwait for one window... In one case it can be window A and in the other case it can be window B

I have tryed using winwait windowa OR winwait windowb but it not works.

Can anyone help me with a easy code to solve this?

Thanks all¡¡¡

Maybe you are doing something wrong.

care to post your code?


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Hi all ¡¡¡

I want winwait for one window... In one case it can be window A and in the other case it can be window B

I have tryed using winwait windowa OR winwait windowb but it not works.

Can anyone help me with a easy code to solve this?

Thanks all¡¡¡

Maybe

while 1
   if WinExsts(windowa) or WinExists(windowB) then
   break;
   sleep(300)
wend

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

I just replied to a similar question with example code.

You can use Advanced Window Titles and Text handling as mentioned in the help file to handle multiple window titles at once. :)

Share this post


Link to post
Share on other sites

You forgot to add parameter for Break() martin :)

No I didn't, it was worse than that! I forgot what language I was using. What I meant was ExitLoop not break.Posted Image


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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