I know time when it appear but only if I'm on-line ... if not ... it appear when I access the game
I have many account and many "session" ... I start one single session from time clock ... but I think to have one single "Persistant" routine (for all session) to check IF in specific pixel position are 4 or 5 consequential colour change (i know the HEX colour) and THEN MouseClick in specific positions.
My idea .. not tested ... but applicable to some other "casuality" in the game:
Code: Select all
#Persistent
SetTimer, PopUpAlert, 500
SetTimer, HelpAlert, 500
SetTimer, BounsAlert, 500
return
PopUpAlert:
Try
{
if WinExist("MY_game_")
loop,
{
if ( PixelSearch,,, 1001, 1001, 1002, 1002, 0xAAAAAA, 100 ) or if ( PixelSearch,,, 1001, 1001, 1002, 1002, 0xBBBBBB, 100 ) {
MouseClick, left, 736, 540 ;## click ok GET_BONUS
Sleep 300
MouseClick, left, 836, 640 ;## click CLOSE
Sleep 300
break ; break loop
}
}
}