04-04-2017, 02:25 AM
I want OSD show method at the same time when a specific color is found
If you use the method below, you will find the color sequentially.
I want to output the OSD at the same time when the same color is found.
How can I do?
Function Function9
If you use the method below, you will find the color sequentially.
I want to output the OSD at the same time when the same color is found.
How can I do?
Function Function9
int rad=22
ARRAY(RECT) a
int w=win("" "MSPaintApp")
rep
,0.1
,if (scan("color:0x241CED" w 0 0 0 a))
,,int i
,,for i 0 a.len
,,,RECT& rr=a[i]
,,,out "x=%i y=%i width=%i height=%i" rr.left rr.top rr.right-rr.left rr.bottom-rr.top
,,,int h=OnScreenDraw(rr.left-rad rr.top-rad rad*2 rad*2 &OSD_ProcExample3 0 180 1 55 h)