probs running findimagepos on other pc

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
mmundorf
Newbie
Posts: 5
Joined: Thu Jul 17, 2008 5:34 pm

probs running findimagepos on other pc

Post by mmundorf » Fri Jul 18, 2008 7:24 am

Posted it in newbie, but I guess this goes a bit further, so here goes :

Guys,

I donno if I'm loosing it, but I can't get it to work.

I created a script that is using the FindImagePos, and it works like a charm on the pc I wrote the script on, I export it to an .exe, so far so good, still working.

Now I want to run this exe on another machine and it won't budge, it runs until the first findimagepos needs to be run, but it doesn't do it.

Could it be a different screen issue, how could I resolve this to work on whatever screen and resolution ?

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

Post by JRL » Fri Jul 18, 2008 12:19 pm

Posted it in newbie, but I guess this goes a bit further, so here goes :
No need to double post.

Your problem is probably color depth rather than screen resolution. See this article on color depth. Have you done anything with FindImagePosition>'s "color_tolerance" parameter?
Help wrote:FindImagePos>bitmap_to_find,bitmap_to_scan|SCREEN,color_tolerance,return_center,X_Array,Y_Array,NumFound
If color_tolerance is zero the pixel colors must match exactly. color_tolerance can be set to a value between 0 and 255. If larger than zero the red, green and blue values of the pixels in bitmap_to_scan are checked to see if they are within the tolerance specified (color value + or - color_tolerance). Smaller values match less and larger values match more.

mmundorf
Newbie
Posts: 5
Joined: Thu Jul 17, 2008 5:34 pm

Post by mmundorf » Fri Jul 18, 2008 12:24 pm

so in short I have :

FindImagePos>%path%\RBC.bmp,SCREEN,0,1,X,Y,NumFound

this means exact match ?

so I need to go in the direction of :

FindImagePos>%path%\RBC.bmp,SCREEN,50,1,X,Y,NumFound
or up until I get it to work ?

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

Post by JRL » Fri Jul 18, 2008 12:46 pm

That would be my best guess.

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