10-02-2020, 07:12 PM
something like this should work for you
int w=win("$My QM$" "CabinetWClass")
if(!w) ret
RECT r
SetRect &r 99 267 128 290 ;;coordinates in the client area of the window
POINT p
rep
,xm(p w 1)
,int inRect=PtInRect(&r p.x p.y)
,OnScreenDisplay iif(inRect F"mouse is in rectangle[]Cursor coordinates are:[]{p.x} {p.y}" "mouse is not in rectangle") -1 0 0 0 0 0 4|8 "MouseInRect"
,0.3