Created
February 12, 2018 14:20
-
-
Save jasp402/0a75a2ce390f2f9c31d51dc368780c17 to your computer and use it in GitHub Desktop.
AutoIT - Esperar hasta que exista o se cumpla el timeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Func waitForExist($element, $iTimeOut) | |
$sBegin = TimerInit() | |
While TimerDiff($sBegin) < $iTimeOut | |
$isExist = WinExists($element) | |
If $isExist then | |
ConsoleWrite($isExist&@CRLF) | |
Return True | |
Else | |
ConsoleWrite($isExist&@CRLF) | |
ContinueLoop | |
EndIf | |
Return false | |
WEnd | |
EndFunc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment