Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Newbie question - pixel search problem

$
0
0

160.jpg

This is visualization of my problem

3 objects with different colors drop down and i need to move Brown arrow by clicking right arrow on keyboard or left arrow  i tryed to make it work and i am still missing something

 

HotKeySet("{HOME}","start­")
HotKeySet("{end}","stop&q­uot;)
while 1
sleep(100)
WEnd
func stop()
Exit
EndFunc
func start()
while 1
$coord = PixelSearch(402,44,506,109, 0x4B52FF, 10; 0x2B52FF, 10; 0x2G52FF, 10)
    If Not @error Then
        Send("{RIGHT}")
    Elseif @error Then
        Send("{LEFT}")
    EndIf
WEnd
EndFunc
 

Could anyone help me a little i trying to get this work second day but it stil dont wont work :/


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>