Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OSD show method at the same time when a specific color is
#1
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
Code:
Copy      Help
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)


Forum Jump:


Users browsing this thread: 3 Guest(s)