Posts: 1,006
Threads: 330
Joined: Mar 2007
For user interface, it is sometimes important to prevent them from clicking on objects while some macro is running but to block mouse motion causes the user to be upset - makes them think the computer is locking up. It would be great to let them move mouse but block any click input. Is this easy to do?
Thanks,
Stuart
Posts: 12,097
Threads: 142
Joined: Dec 2002
I added this feature to BlockInput2 today.
BlockInput2 - disable keyboard and/or mouse
Posts: 12,097
Threads: 142
Joined: Dec 2002
Or display text using OnScreenDisplay. To clear the text, use this function:
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
Posts: 1,769
Threads: 410
Joined: Feb 2003
OsdClose is AWESOME!!
thanks.