Im trying to make it work + add refill option but got problem with runes recognition - macro don't find image or click other place (guess it's multiple find). Tried many tolerance options - f.g. 0.7, 0.9, 1, 10, 50, 100, exact, etc. but it's not working properly
Code: Select all
Label>WaitForAnImage
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\start.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
wait>0.1
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\reward.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
wait>2
Lclick
Let>FoundAnImage=TRUE
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\4starlegendary.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
FindImagePos>%BMP_DIR%\sell.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\4starpurple.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT //GIT
If>NumFound>0
FindImagePos>%BMP_DIR%\sell.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\4starblue.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\sell.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\5starblue.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
FindImagePos>%BMP_DIR%\sell.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\5starpurple.bmp,SCREEN,.99,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
FindImagePos>%BMP_DIR%\sell.bmp,SCREEN,0.9,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\5starlegendary.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\get.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\6starlegendary.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\get.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\6starpurple.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\get.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\6starblue.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT //GIT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\get.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\yes.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\unknown scroll.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\ok.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\rainbowmon.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\ok.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\shapeshiftstone.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\ok.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find FIRST image
FindImagePos>%BMP_DIR%\summoning stone.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//If FIRST image found, get position of image TWO and click on THAT
FindImagePos>%BMP_DIR%\ok.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
Endif
wait>0.1
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\replay.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
wait>0.1
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Endif
wait>0.1
//Find and Do Nothing Center of
FindImagePos>%BMP_DIR%\image_2.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\image_3.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>Image2Found>0
MouseMove>XArr_0,YArr_0
LClick
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\image_4.bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>Image3Found>0
MouseMove>XArr_0,YArr_0
LClick
Let>FoundAnImage=TRUE
Endif
endif
Endif
If>FoundAnImage=FALSE
//Neither image was found, loop back and look again
Wait>0.2
Goto>WaitForAnImage
Endif
Label>WaitForAnImage
// do something here
Goto>WaitForAnImage
//CCOEFF