Ryukk0 Posted September 18, 2011 Posted September 18, 2011 what i wana know is how to search for multy colors in 1 variavle exmpl: While 1 $folder = PixelSearch(0,55, 1023,635, 0x4A2A26,0x231B13,0x127B132) if IsArray($folder)Then MouseClick("left",$folder[0],$folder[1],1,1) send("{ENTER}") sleep(1000) send("{F5}") EndIf WEnd i know i miss somthing there but dont know what =/ any help plz???
JohnOne Posted September 18, 2011 Posted September 18, 2011 You will have to put your multiple colours into an array, and loop through it searching for a match as you do. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
somdcomputerguy Posted September 18, 2011 Posted September 18, 2011 This might work. I wrote it off the top of my head, and haven't tested it. $Array[3] = [0x4A2A26,0x231B13,0x127B132] While 1 For $c = 1 To Ubound($Array) $Folder = PixelSearch(0,55, 1023,635, $Array[$c]) If IsArray($Folder) Then MouseClick("left", $Folder[0], $Folder[1], 1, 1) Send("{ENTER}") Sleep(1000) Send("{F5}") EndIf Next WEnd - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now