th3f34r 0 Posted August 13, 2011 (edited) 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.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 WEndThus, 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 August 13, 2011 by th3f34r Share this post Link to post Share on other sites
somdcomputerguy 103 Posted August 13, 2011 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 0 Posted August 13, 2011 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 403 Posted August 13, 2011 (edited) 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 August 13, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites