Jump to content

WinWait Function


Recommended Posts

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

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

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