Created
February 12, 2018 14:06
-
-
Save jasp402/b177defc00a17d9d9ef46d25e1585614 to your computer and use it in GitHub Desktop.
AutoIT - Esperar hasta que el archivo exista
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 waitForExistFile($sPath, $iTimeOut) | |
$sBegin = TimerInit() | |
While TimerDiff($sBegin) < $iTimeOut | |
If FileExists($sPath) then | |
Return True | |
Else | |
ContinueLoop | |
EndIf | |
Return false | |
WEnd | |
EndFunc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment