Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code to disable both keyboard and mouse temporarily
#10
Before BlockInput2, insert

opt waitmsg 1

You can download the attachment (above). It is the same, with little enhancements, and does not require opt waitmsg 1.

If it does not work properly even with opt waitmsg 1, it means that thread that calls BlockInput2 for some reason cannot process messages. Then you have to call BlockInput2 from another thread.

This macro blocks input, launches the real macro "Function14" (it must be function), and waits until the real macro exits:

Code:
Copy      Help
opt waitmsg 1
BlockInput2 3
wait 0 H mac("Function14")
BlockInput2 0

BlockInput2 in other thread cannot be used on Win 98/me.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)