Image detection stops working after a time

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

rnoecker
Junior Coder
Posts: 25
Joined: Fri Jun 07, 2013 4:44 pm

Post by rnoecker » Thu Jun 27, 2013 9:49 pm

Meryl wrote:
rnoecker wrote:I'm using Windows 7 now for testing, but if I go with this solution I will likely go back to using Windows 2003 for production, and it sounds like this may be the fix for the issue I was having.
Did it work?
I haven't had a chance to test in Windows 2003 yet. It did not help the crashing issue I am having with Windows 7 which is different but still seems to be related to image detection.

http://www.mjtnet.com/forum/macro-sched ... t7836.html

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Jul 12, 2013 4:27 pm

I updated to 14.0.12 on July 10. Today is July 12. A script I have successfully run every night Since Feb 19 that contains the line:

Code: Select all

FindImagePos>%temp_dir%PbC.bmp,WINDOW:Global Shop Solutions,0.7,1,XPos,Ypos,NumFound,CCOEFF
Ran successfully Wednesday night (day of the update) but failed to run Thursday night (last night). It failed to find the image on this FindImagePos> line even though the window was open and the needle file exists. If I step through in the editor I see that the return code is -1. This made me wonder if this is the same issue as this thread reports.

Also, when I stepped through the script a second time, the FindImagePos> line spawned an error message that said:

"Cannot create a file when that file already exists."

Closed and restarted Macro Scheduler and everything works again.
Thought you'd want to know.
v14.0.12 on Windows XP SP3

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts