WaitScreenImage>%BMP_DIR%\image_1.bmp,0.7,CCOEFF
Like if>waitscreenimage>false then golabel start
Im trying do a macro to auto login in one game but sometimes it fails, because internet, lag, etc, so when it fail i need to make it start again, i'm using waitscreenimage at the end, to confirm if it succeeded to login into the game.
Code: Select all
//Recorded Events
Let>WW_TIMEOUT=5
Label>Start
MouseMove>249,859
Wait>0.787
//Clicking on:
//SnapShotFile>%BMP_DIR%snapshot_0.png
Wait>0.001
LClick
Wait>0.126
//Activating Window:
//SnapShotFile>%BMP_DIR%snapshot_1.png
WaitWindowOpen>PXG Client
MoveWindow>PXG Client,-4,-4
ResizeWindow>PXG Client,1924,845
Wait>0.125
MouseMove>371,722
Wait>2.236
Press Enter
Let>WSI_TIMEOUT=5
//Wait for
WaitScreenImage>%BMP_DIR%\image_1.bmp,0.7,CCOEFF
If>WSI_TIMEOUT=TRUE
Goto>Start
Else
Goto>End
Label>End