Find First Image of 4 With 9 Variables each, Click other Img

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
boch4maN
Newbie
Posts: 1
Joined: Fri Jan 08, 2016 5:06 am

Find First Image of 4 With 9 Variables each, Click other Img

Post by boch4maN » Fri Jan 08, 2016 5:26 am

Hi !

I'm finally here for help after years of use !
I can't find the right way to do what i want

Image

I have 4 random numbers
ex: 1,2,3 ( 0000, 9999, 0172, 5428, 9195, etc )

then I have a numpad with the 9 numbers mixed
ex: 1 and 2

and I have this "OK" button.

I need the Macro to read the 4 digits numbers , and click in the numpad the right 4 numbers ( remember the numpad is random too ) and then click OK button.

Any Help? :3

----

Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image

What i think it should look like?

Code: Select all

Windows appear, Image Detected, Continue
I SearchImg for any of the numbers (0,1,2,3,4,5,6,7,8,9) in the first of the four digits
If 1 not found, continue
If 2 not found, continue
If 3 found, SearchImg in the Numpad for the same number "3", Click it
Jump to next Digit
I SearchImg for any of the numbers (0,1,2,3,4,5,6,7,8,9) in the second of the four digits
If 1 not found, continue
If 2 not found, continue
If 3 found, SearchImg in the Numpad for the same number "3", Click it
I SearchImg for any of the numbers (0,1,2,3,4,5,6,7,8,9) in the third of the four digits
If 1 not found, continue
If 2 not found, continue
If 3 found, SearchImg in the Numpad for the same number "3", Click it
Jump to next Digit
I SearchImg for any of the numbers (0,1,2,3,4,5,6,7,8,9) in the fourth of the four digits
If 1 not found, continue
If 2 not found, continue
If 3 found, SearchImg in the Numpad for the same number "3", Click it
Now Click OK
Windows dissappear
And wait for the Window to appear again to start all Over
--------

I Get lost in the "If ImageFound, Search For Image in Numpad"
How to do that?

Thanks very much, I'm fighting for days now ^^

After alot of reading, i found this:

Code: Select all

//Find FIRST image
FindImagePos>Image1,SCREEN,bla,bla
If>NumFound>0
  //If FIRST image found, get position of image TWO and click on THAT
  FindImagePos>Image2,SCREEN,bla,bla
  If>Image2Found>0
    MouseMove>Image2_X_0,Image2_Y_0
    LClick
  Endif
Endif
Any other tip is welcome :D

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