Jump to content

winwait for 2 windows


muralla
 Share

Recommended Posts

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

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

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