pezo89 Posted April 19, 2009 Share Posted April 19, 2009 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? Link to comment Share on other sites More sharing options...
SwordHunter4Ever Posted April 19, 2009 Share Posted April 19, 2009 (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 April 19, 2009 by SwordHunter4Ever Link to comment Share on other sites More sharing options...
pezo89 Posted April 19, 2009 Author Share Posted April 19, 2009 $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 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 More sharing options...
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