Jump to content

Recommended Posts

Posted

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???

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...