04-20-2007, 05:47 PM
ken gray Wrote:ken gray Wrote:how about this?
mou 305 85 "Quick Macros"
int col [color=red]this is just initialing the integer 'col'[/color]
col = pixel(305 85 "Quick Macros") [color=red]Stores the color from the xy inside the parens[/color]
rep
,if col = pixel(300 85 "Quick Macros")
,,out "continue"[color=red]just puts the word continue in the output of the editor for debug[/color]
,,0.5[color=red]waits half-second[/color]
,,ClearOutput[color=red]clears the Editor's output box for debugging[/color]
,,continue[color=red]if colour the same keep repeating[/color]
,else
,,break[color=red]if colour is changed stop repeating and go on[/color]
out "break"[color=red]output for debugging[/color]
I seem to be having a problem, when it moves the mouse to that location, and gets the color, then since the mouse is above it, it is a different color, and moves on right away, is it possible to look at the location and get the color without actually moving the mouse there?
