I am playing a webpage game, it need to click on certain monster to kill them. But sometimes it is boring to do the same clicking the whole day. So i usually check some other news or other webpages while playing this game, but it is irritating to change back to the game window to click on it and back to my news every 5 seconds.
I use pixelSearch to search a certain pixel from the monster and if the monster avaiable on screen, then it will auto click on it. but it only works when the game screen is activate and is to the front screen. if i am browsing other webpage, then it can't perform the click function.
this is basic function i wanna do, this is just part of it.
$B = PixelSearch($startXY[0], $startXY[1], $endXY[0], $endXY[1], 0xed8681)
while 1
if IsArray( $B ) then
MouseClick("left",$B[0],$B[1],1,1)
SLEEP(5000)
endif
wend
I search the forum, someone say that pixelSearch doesn't work on background.
So what i need is, some functions that can search certain pixel and click on it on background window and don't irritate my current window.
Is there any function for it.
Thanks in advance.