glad to be here and appreciate any help provided from the masters in this forum
i need a macro to detect 4 images and combine 2 images when found and order a mouse click.
managed to work it but when i click run nothing happens, but no error message or error box displayed.
can't figure out what's wrong
Code: Select all
//Find
FindImagePos>%BMP_DIR%\image_1.bmp,%TEMP_DIR%\screenrect.bmp,0.7,1,XArr,YArr,NumFound1,CCOEFF
ScreenCapture>131,556,238,586,%TEMP_DIR%\screenrect.bmp
//Find
FindImagePos>%BMP_DIR%\image_1.bmp,%TEMP_DIR%\screenrect.bmp,0.7,1,XArr,YArr,NumFound2,CCOEFF
ScreenCapture>997,557,1087,586,%TEMP_DIR%\screenrect.bmp
//Find
FindImagePos>%BMP_DIR%\image_2.bmp,%TEMP_DIR%\screenrect.bmp,0.7,1,XArr,YArr,NumFound3,CCOEFF
ScreenCapture>131,557,222,585,%TEMP_DIR%\screenrect.bmp
//Find
FindImagePos>%BMP_DIR%\image_2.bmp,%TEMP_DIR%\screenrect.bmp,0.7,1,XArr,YArr,NumFound4,CCOEFF
If>(NumFound1 && NumFound2)>0
MouseMoveRel>56,248
LClick
MouseMoveRel>51,224
LClick
Until><>
Goto>Image_search
Else
If>(NumFound1 && NumFound4)>0
MouseMoveRel>55,249
LClick
Until><>
Goto>Image_search
Else
If>(NumFound3 && NumFound4)>0
MouseMoveRel>55,249
LClick
MouseMoveRel>107,222
LClick
Until><>
Goto>Image_search
Else
If>(NumFound3 && NumFound2)>0
MouseMoveRel>55,249
LClick
Until><>
Goto>Image_search
Else
//Loop back and try again
Endif
Endif
Endif
Endif