TouchOdeath Posted November 19, 2008 Posted November 19, 2008 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
herewasplato Posted November 19, 2008 Posted November 19, 2008 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 ;==>WaitWinChanged WinWaitActive($Ttl, $Txt, $Timeout) or it might hang [size="1"][font="Arial"].[u].[/u][/font][/size]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now