10-02-2020, 04:08 PM
Hi Gintaras and all,
Having a little trouble with this one. Need to have this func running continually, and
if mouse is over the rect
display mes (be it mes, Mes, OSD, ect.)
if mouse not over rect anymore
destroy mes ect.
The following code part before else statement works good with output, but
after the else no good.
Please any help, Thanks in advance.
Scott
Function FunctionOne25
Having a little trouble with this one. Need to have this func running continually, and
if mouse is over the rect
display mes (be it mes, Mes, OSD, ect.)
if mouse not over rect anymore
destroy mes ect.
The following code part before else statement works good with output, but
after the else no good.
Please any help, Thanks in advance.
Scott
Function FunctionOne25
/ FunctionOne25 \
#region __Description
;; Description of Function:
;; Want to be able to display a mes or output with coordinates,
;; when mouse pointer is over any part of specified rect and
;; destroy mes or different output when mouse Not over rect.
#endregion
int w=win("$My QM$" "CabinetWClass")
;; Loop1
RECT r
SetRect &r 99 267 128 290 ;;coordinates in the client area of the window
if wait(0 -S "" w r 16)
,POINT p; xm(p w 1) ;;get mouse position into p.x and p.y
,out "[]Cursor coordinates are:[]%i %i" p.x p.y
else
,;wait(0 -S "" w r 16|0x400)
,xm(p w 1) ;;get mouse position into p.x and p.y
,out "[]Cursor coordinates now are:[]%i %i" p.x p.y
goto Loop1