Sign in to follow this  
Followers 0
brett

2 Winwaits At Once

3 posts in this topic

Would it be possible to Wait for 2 screens at once, and if one comes, it does a function, but if a different window comes, it will do a different function?

WinWait( "Title", "",)

WinWait( "DifferentTitle", "",)


-Brett

Share this post


Link to post
Share on other sites



Something like this could work:

While 1
   if WinExists( "Title", "",1) Then
     ; do your thing
   EndIf
   if WinExists( "DifferentTitle", "",1) Then
     ; do your thing
   endif
   sleep(50)
Wend

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

cool thanks


-Brett

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