Is there any script to wait until a file or files to exist in the drive then to executing commands?
Let us dealing with MsgBox, then I can replace MsgBox with commands that I want.
I found a script from the old AutoHotkey community https://www.autohotkey.com/board/topic/91767-wait-for-a-file-to-exist-and-launch-it/
I modified a little bit on the code and the code after modifying is in the following:
Code: Select all
!F8::
#Persistent
SetTimer, Launch, 5000
return
Launch:
ifExist, D:\My Image.png
{
MsgBox, File is existing now.
Return
}