Cannot find image file in FindImagePos / WaitScreenImage

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1417
Joined: Sun Nov 03, 2002 3:19 am

Cannot find image file in FindImagePos / WaitScreenImage

Post by Dorian (MJT support) » Tue Mar 26, 2013 12:33 am

Take care when renaming scripts which use image recognition created by the wizard.

I just stumbled upon something which may cause confusion when using FindImagePos or WaitScreenImage.

If you use the image recognition wizard to capture an image, it places the bmp files in %bmp_dir%. This is a subfolder of your script folder, and will have the same name as your script. For example my documents/macro scheduler 14/oldscriptname/image_1.bmp

Renaming your script will cause it to look for those images in a different folder, which doesn't actually exist. For example my documents/macro scheduler 14/newscriptname/image_1.bmp

This will result in a "cannot find image" error.

The simple solution is to rename the folder from oldscriptname to newscriptname.

I hope this helps someone. :D

bbrink
Pro Scripter
Posts: 71
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

Re: Cannot find image file in FindImagePos / WaitScreenImage

Post by bbrink » Sun Jan 17, 2016 9:23 pm

It helped me...

thank you!

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