Code: Select all
FindImagePos>c:\Documents and Settings\John J Doe\My Documents\My Images\FindHC.bmp,c:\Documents and Settings\John J Doe\My Documents\My Images\capturefirst.bmp,CV,1,X,Y,NumFound
If>NumFound=-1
message>Error Finding %FindHC%
Wait>5
EndIf
I put in the error message to give me a warning when it occurs. I can fix it with Search/Replace, but it is still awfully frustrating. It’s happened so often that I am convinced it’s not my typing.
Any help? When could it be happening? When I am running manually from the scrip editor (the advanced Editor)? My script Sets Focus on a window that may not be open, I click ignore when I am debugging. Could it be leaving focus on my script and changing it? (There are no ‘delete’ commands in my script.) It doesn’t seem to be limited to commands; even some of my comments have missing spaces. I haven't noticed any actual text being deleted. The FindImage command seems to be affected most often, but I have about sixty lines of it with lots of looping through them, so they are the most likely to be hit.
I have also placed an error message in:
Code: Select all
SetFocus>xxxxx*
ScreenCapture>CTX,CTY,CBX,CBY,C:\Documents and Settings\John J Doe\My Documents\My Images\capturefirst.bmp
If>SCREENCAP_RESULT>0
message>Error Screen Capture, SCREENCAP_RESULT = %SCREENCAP_RESULT%
EndIf
I’m running version 10.014 with Windows XP. I don’t know if it was happening in the earlier version.
Also, when I search the forum, look at a post and try to go back to the “Foundâ€