sig Posted November 26, 2006 Share Posted November 26, 2006 Greetings, I am new to writting macros I have a question, I already finish writting a simple macros, but I am hoping it can have the activate and deactivate reading a color location from a X,Y Location if it changes the RGB color. can anyone help me how to add that script in? Please. Iam thinking something with like below I just don't know what the script codes are. Read X,Y location, if X,Y location = RGB color 00ff00 then macros Pause Read X,Y location, if X. Y location not = RGB color 00ff00 Macros Continues (unPause) Please help me. Sincerely, Sig Link to comment Share on other sites More sharing options...
Seagul Posted November 26, 2006 Share Posted November 26, 2006 Should be able to use getpixel or pixelsearch. Link to comment Share on other sites More sharing options...
Paulie Posted November 27, 2006 Share Posted November 27, 2006 $X = 100 $Y = 100 $_Color = 0xFFFFFF While 1 $color = PixelGetColor($x, $y) If Hex($color) = $_color Then While Hex($color) = $_color $color = PixelGetColor($x, $y) ToolTip("Macros are paused",0,0) Sleep(100) Wend Else ;Macros Here EndIf WEnd 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