Hmm, this does not appear to be drive related after all. I made a simpler script and the problem disappeared. I assume this was some kind of user error on my part, but I'll report back if that's not the case.
RE: obeeb, I don't think that's correct
Code
Code: Select all
ImageSearch(oX, oY, 0, 0, A_ScreenWidth, A_ScreenHeight, "C:\Temp\Test.png")
OutputDebug("1>> X=%oX% Y=%oY% ErrorLevel=%ErrorLevel%")
ImageSearch, oX, oY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, "C:\Temp\Test.png"
OutputDebug("2>> X=%oX% Y=%oY% ErrorLevel=%ErrorLevel%")
ImageSearch, oX, oY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\Temp\Test.png
OutputDebug("3>> X=%oX% Y=%oY% ErrorLevel=%ErrorLevel%")
ImageSearch(oX, oY, 0, 0, A_ScreenWidth, A_ScreenHeight, "D:\Temp\Test.png")
OutputDebug("4>> X=%oX% Y=%oY% ErrorLevel=%ErrorLevel%")
ImageSearch, oX, oY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, "D:\Temp\Test.png"
OutputDebug("5>> X=%oX% Y=%oY% ErrorLevel=%ErrorLevel%")
ImageSearch, oX, oY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, D:\Temp\Test.png
OutputDebug("6>> X=%oX% Y=%oY% ErrorLevel=%ErrorLevel%")
Output
Code: Select all
1>> X=321 Y=321 ErrorLevel=0
2>> X= Y= ErrorLevel=2
3>> X=321 Y=321 ErrorLevel=0
4>> X=321 Y=321 ErrorLevel=0
5>> X= Y= ErrorLevel=2
6>> X=321 Y=321 ErrorLevel=0