11-03-2009, 07:27 PM
Hello,
i would like to get a little help from someone please.
I would like to achieve function check every 100ms or less for example the exact location (or rectangle if possible) and once the color appear run macro which click on exact loc.
But unfortunately function doesn't work so well.
Macro works if i run it manually.
Function
macro2
Thanks in advance for help.
i would like to get a little help from someone please.
I would like to achieve function check every 100ms or less for example the exact location (or rectangle if possible) and once the color appear run macro which click on exact loc.
But unfortunately function doesn't work so well.
Macro works if i run it manually.
Function
int x y color
lpstr macro
;define coordinates, color and macro
x=18
y=159
color=ColorFromRGB(255 144 0)
;wait for color
;g1
rep
,if(pixel(x y)=color)
,,mac "macro2"
,,break
macro2
Thanks in advance for help.