OSD show method at the same time when a specific color is

Creating complex macros, dialogs, solving complex tasks, programming.

OSD show method at the same time when a specific color is

Postby BK on Tue Apr 04, 2017 2: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     ?
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)

BK
 
Posts: 116
Joined: Thu Aug 28, 2014 4:37 am

Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron