Sign in to follow this  
Followers 0
TouchOdeath

WinWait Function

2 posts in this topic

I HAD a probelm with this code, but it was just a simple overlooked thing but heres the working code for anyone who wants this function:

WaitWin("Store Operations Manager")

Func WaitWin($Ttl,$Txt = "",$Timeout = "")

WinWait($Ttl, $Txt,$Timeout)

If Not WinActive($Ttl, $Txt) Then WinActivate($Ttl, $Txt)

WinWaitActive($Ttl, $Txt)

EndFunc

Share this post


Link to post
Share on other sites



WaitWin("Store Operations Manager", "", 2)

Func WaitWin($Ttl, $Txt = "", $Timeout = "")
    WinWait($Ttl, $Txt, $Timeout)
    If Not WinActive($Ttl, $Txt) Then WinActivate($Ttl, $Txt)
    WinWaitActive($Ttl, $Txt, $Timeout)
EndFunc   ;==>WaitWin
Changed WinWaitActive($Ttl, $Txt, $Timeout) or it might hang


[size="1"][font="Arial"].[u].[/u][/font][/size]

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