07-12-2007, 10:23 AM
Or display text using OnScreenDisplay. To clear the text, use this function:
Function OsdClose
Function OsdClose
;/
function [$osdid]
;Clears on-screen text that is displayed by OnScreenDisplay.
;If osdid is used and not "", clears text of OnScreenDisplay where the same osdid was used. Else clears all.
;Can be used with atend too.
;EXAMPLE
;OnScreenDisplay "Macro is running." -1 0 200 "" 0 0 0 "osd_mir"
;atend OsdClose "osd_mir" ;;or can be used atend OsdClose ""
;mes "Macro is running"
int h
if(len(osdid))
,h=win(osdid "QM_OSD_Class")
,if(h) clo h; err
else
,rep
,,h=win("" "QM_OSD_Class")
,,if(!h) break
,,clo h; err