The following script is part of another big script to auto print files on a folder.
Code: Select all
WatchMove:
IfExist C:\Users\%A_UserName%\Google Drive\WhatsApp_Pics\*.jpg
{
Loop, C:\Users\%A_UserName%\Google Drive\WhatsApp_Pics\*.jpg
{
FileLongName = %A_LoopFileLongPath%
FileMove, %A_LoopFileLongPath%, D:\Print,1
}
}
Return
The Problem is that sometimes 2 files get synced at once and WatchMove wont move the second file, only the first file which is strange to me...
So I have tested this and confirmed...
- Copy Pasted 1 file in the folder, waited 2 seconds, pasted another file... They both moved.
- Copy Pasted 2 files in the folder at the same time... only the 1st file got moved... unless I reset the WatchMove Settimer by turning it on and off. It would never detect the 2nd File...
why does this happen and is there a fix?