Help With An Image Recognition

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
eugekiller
Newbie
Posts: 17
Joined: Thu Mar 05, 2015 1:45 pm

Help With An Image Recognition

Post by eugekiller » Fri Mar 06, 2015 8:06 pm

Image

So i have that image with a timer on the bottom.. Now when the timer runs out the chest starts to bounce.
once it starts bouncing and timer runs out i need it to interact with it. I need some advice on how i can do that best?
Now the chest is always in the same place of the screen.

Label check
FindImagePos>%BMP_DIR%\image_2.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_2_Found,CCOEFF
FindImagePos>%BMP_DIR%\image_16.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_16_Found,CCOEFF
if>Image_2_Found>0,help
if>Image_16_Found>0,truce
Goto>check

Now this is my check section so i would need to add it in there as well so it cant just sit on that chest and wait till it starts bouncing. It need to check for other things also.

I was thinking some thing like if it doesnt see the timer in a certain area it goest to what ever label.. But not sure how to do that, or maybe there is a better way of doing it, since the timer is transparent a bit. And the chest is always there doesnt take diffrent shape in any way.

I thought one if

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Help With An Image Recognition

Post by Marcus Tettmar » Mon Mar 09, 2015 10:46 am

If it's always in the same position before it bounces, then could you use FindImagePos in a loop and keep looping until the Y pos changes (because surely if it "bounces" it's Y position changes)?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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