So once the red timer is gone it will click on the Purchase, if click before the timer the game add a cooldown.
then I press on Confirm after.
Code: Select all
MoveWindow>x x x,36,1221
Label>start
ScreenCapture>844,1510,880,1526,%TEMP_DIR%\screenrect.bmp
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\image_1.bmp,%TEMP_DIR%\screenrect.bmp,0.85,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
Let>count=1
Repeat>count
MouseMove>{%XArr_0%+1396},{%YArr_0%+1996}
LClick
MouseMove>{%XArr_0%+1013},{%YArr_0%+1750}
Wait>0.16
LClick
Add>count,1
Until>count=3
else
Goto>start
Endif
Goto>start
