Jump to content

Pixel color


Recommended Posts

$Color1 = PixelSearch( $pos[0] + 1, $pos[1] + 1, $pos[0] + 2, $pos[1] + 2, 9311240)
        IF Not @Error Then
            $Color2 = PixelSearch( $pos[0] + 1, $pos[1] + 1, $pos[0] + 2, $pos[1] + 2, 16777215)
                    IF Not @Error Then
                        IF FINDS FIRST AND CHANGES TO SECOND DO WHAT!
                    IF @Error Then
                        IF IT CAN FIND FIRST COLOR BUT DOESN'T CHANGE TO SECOND THEN DO WHAT HERE!
                    EndIf
        IF @Error Then
            IF IT CANT FIND FIRST COLOR AT ALL DO WHAT HERE?
        ENDIF

EDIT: If you don't understand that feel free to ask what it means.

Hope this was useful =]

Edited by SwordHunter4Ever
Link to comment
Share on other sites

$Color1 = PixelSearch( $pos[0] + 1, $pos[1] + 1, $pos[0] + 2, $pos[1] + 2, 9311240)
        IF Not @Error Then
            $Color2 = PixelSearch( $pos[0] + 1, $pos[1] + 1, $pos[0] + 2, $pos[1] + 2, 16777215)
                    IF Not @Error Then
                        IF FINDS FIRST AND CHANGES TO SECOND DO WHAT!
                    IF @Error Then
                        IF IT CAN FIND FIRST COLOR BUT DOESN'T CHANGE TO SECOND THEN DO WHAT HERE!
                    EndIf
        IF @Error Then
            IF IT CANT FIND FIRST COLOR AT ALL DO WHAT HERE?
        ENDIF

EDIT: If you don't understand that feel free to ask what it means.

Hope this was useful =]

hehe, well i think this is abit out of my league :D however im trying to figure out how to acctuly have it do any actions upon the change, might need to do some reading by myself it seems, as asking wont do me any good, as i cant understand the answers ^_^ and not the best thing to start with at 11 pm ;)

however, thx for the quick response, and help thou :(

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...