Skip to content

Instantly share code, notes, and snippets.

@jasp402
Created February 12, 2018 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasp402/b177defc00a17d9d9ef46d25e1585614 to your computer and use it in GitHub Desktop.
Save jasp402/b177defc00a17d9d9ef46d25e1585614 to your computer and use it in GitHub Desktop.
AutoIT - Esperar hasta que el archivo exista
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