New To This Macro Need Help
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 17
- Joined: Thu Mar 05, 2015 1:45 pm
Re: New To This Macro Need Help
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
can it be done this way?
If>NumFound>2,do1
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
Re: New To This Macro Need Help
Yes you can do that
If>NumFound=1,DO1
If>NumFound>1,DO2
...
If>NumFound=1,DO1
If>NumFound>1,DO2
...
-
- Newbie
- Posts: 17
- Joined: Thu Mar 05, 2015 1:45 pm
Re: New To This Macro Need Help
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
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
Re: New To This Macro Need Help
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
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
-
- Newbie
- Posts: 17
- Joined: Thu Mar 05, 2015 1:45 pm
Re: New To This Macro Need Help
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
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
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
Re: New To This Macro Need Help
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)
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)
-
- Newbie
- Posts: 17
- Joined: Thu Mar 05, 2015 1:45 pm
Re: New To This Macro Need Help
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
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

-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
Re: New To This Macro Need Help
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!
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!
-
- Newbie
- Posts: 17
- Joined: Thu Mar 05, 2015 1:45 pm
Re: New To This Macro Need Help
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
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