Jump to content

Recommended Posts

Posted

Is it possible to add an action upon pixelchange, for example when it goes from: 9311240 to 16777215,?

for example to have it pushing F1 when that change occurs and ect.

and if yes, how? ^_^

Posted (edited)

$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
Posted

$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 :(

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