I try to do script who can check if image is true or false and make the appropriate functions.
Code: Select all
SetFocus>Vesteris
Wait>5
Label>lol
//Find and Double Right Click Center of
FindImagePos>%BMP_DIR%\image_11.bmp,WINDOW:Vesteris,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
Wait>0.2
RClick
Wait>0.2
Rclick
Endif
Wait>0.5
//Find and Right Click Center of
FindImagePos>%BMP_DIR%\image_12.bmp,WINDOW:Vesteris,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
RCLick
Endif
//Find
FindImagePos>%BMP_DIR%\image_16.bmp,WINDOW:Vesteris,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
Endif
//Wait for
WaitScreenImage>%BMP_DIR%\image_14.bmp,0.7,CCOEFF
//Find
FindImagePos>%BMP_DIR%\image_16.bmp,WINDOW:Vesteris,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
Goto>true
Endif
Label>true
//Find and Right Click Center of
FindImagePos>%BMP_DIR%\image_12.bmp,WINDOW:Vesteris,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
RCLick
RCLick
RCLick
RCLick
Endif
Wait>10
Goto>lol
I mean
If script find image on screen do actions true
http://screenshot.sh/m9lD9LN7UoCvx
like this
http://screenshot.sh/ou0G5NZxjz6p7
If not find, do action false and jump to the next "find image"
like this
http://screenshot.sh/m9lD9LN7UoCvx
and 3 razy,2 razy,1 raz
If somebody can help me i will be grateful