Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to block mouse input but still allow mouse movement?
#1
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
#2
I added this feature to BlockInput2 today.

BlockInput2 - disable keyboard and/or mouse
#3
Or display text using OnScreenDisplay. To clear the text, use this function:

Function OsdClose
Code:
Copy      Help
;/
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
#4
OsdClose is AWESOME!!
thanks.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)