PixelSearch for "pop up" multi color variation

Ask gaming related questions
scriptors
Posts: 151
Joined: 25 Feb 2016, 09:01

PixelSearch for "pop up" multi color variation

16 May 2018, 07:53

Into may favourite game ... I have one pop-up daily and I need to click it for go on.
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
	}
	} 
	
	}
one things at time and ... sorry for my bad english :oops:

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 14 guests