Jump to content
Sign in to follow this  
th3f34r

Build a bot with PixelSearch

Recommended Posts

th3f34r

I'm trying to create a bot for this game, where when it detects the color of the note that is close to come, he presses the key corresponding to the note.

Posted Image

I'm trying to do this:

While 1
$n = PixelSearch(298, 587,364, 650,0xD2D2D2,16)
If IsArray($n) Then
tooltip('1', $n[0], $n[1])
EndIf
WEnd

Thus, I have to place the browser in the right place for him to detect that color, but if I change, then it is not working.

What can I do to improve it? There are other easier and better ways to do this?

Thank.

Edited by th3f34r

Share this post


Link to post
Share on other sites
somdcomputerguy

Look up MouseCoordMode in the Helpfile, and read the Forum Rules.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
th3f34r

I still don't understand how to use and why to use this function.

Share this post


Link to post
Share on other sites
wakillon

I still don't understand how to use and why to use this function.

It 's because you didn't read the Forum Rules !

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.