New To This Macro Need Help

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

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

Re: New To This Macro Need Help

Post by eugekiller » Thu Mar 05, 2015 10:30 pm

i dont need to click it just need it to go to a label when it finds 2 of the same image...
can it be done this way?
If>NumFound>2,do1

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Re: New To This Macro Need Help

Post by Jerry Thomas » Thu Mar 05, 2015 10:36 pm

Yes you can do that

If>NumFound=1,DO1
If>NumFound>1,DO2
...
Thanks,
Jerry

[email protected]

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

Re: New To This Macro Need Help

Post by eugekiller » Thu Mar 05, 2015 10:46 pm

Jerry Thomas wrote:Yes it would go to 1 location

"What if i need it to look for either one at the same time."
You have to look for 1 image at a time but can do the 2nd immediately after the 1st one

You don't need to use the multi line style 'If' statement if this is all you want
FindImagePos>,,,,,,,,Image1,,,
FindImagePos>,,,,,,,,Image2,,,

if image1>0,DO1
if image2>0,DO2

ok so so still having a problem with this... this is what i have
Label check
FindImagePos>%BMP_DIR%\image_5.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_5_Found,CCOEFF
FindImagePos>%BMP_DIR%\image_8.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_8_Found,CCOEFF
if image_5.bmp>0,do1
if image_8.bmp>0,do2
Goto>check

the script is running but not going to labels.. just not doing anything not clicking nothing

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Re: New To This Macro Need Help

Post by Jerry Thomas » Thu Mar 05, 2015 10:50 pm

FindImagePos>%BMP_DIR%\image_5.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_5_Found,CCOEFF
FindImagePos>%BMP_DIR%\image_8.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_8_Found,CCOEFF
if Image_5_Found>0,do1
if Image_8_Found>0,do2
Goto>check
Thanks,
Jerry

[email protected]

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

Re: New To This Macro Need Help

Post by eugekiller » Thu Mar 05, 2015 10:57 pm

still nothing says running and nothing

Label check
FindImagePos>%BMP_DIR%\image_5.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_5_Found,CCOEFF
FindImagePos>%BMP_DIR%\image_8.bmp,WINDOW:BlueStacks App Player,0.7,1,XArr,YArr,Image_8_Found,CCOEFF
if Image_5_Found>0,do1
if Image_8_Found>0,do2
Goto>check

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Re: New To This Macro Need Help

Post by Jerry Thomas » Thu Mar 05, 2015 11:02 pm

Step through in debug mode and see what the results are for Image_5_Found & Image_8_Found

Do you have GreaterThan symbols after "If"
if>Image_5_Found>0,truce
if>Image_8_Found>0,truce

(Some of my examples were meant as pseudo code and I left those out)
Thanks,
Jerry

[email protected]

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

Re: New To This Macro Need Help

Post by eugekiller » Thu Mar 05, 2015 11:05 pm

Jerry I love you man.. For putting up with my crap i got it i was missing the >

so all is well now and i guess i will have to purchase it now since it does what i need it to.. Beautiful tool :)

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Re: New To This Macro Need Help

Post by Jerry Thomas » Thu Mar 05, 2015 11:11 pm

Great!
Just send me a check for....

I have caught myself (a few times) leaving out those blasted ">" symbols.
But I love what this application can do!
Thanks,
Jerry

[email protected]

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

Re: New To This Macro Need Help

Post by eugekiller » Thu Mar 05, 2015 11:19 pm

Yep LOL..
I know i will be in here asking questions again... but it looks like it has so much to it. Just need to learn it at least some lol

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