Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blocking input
#3
To create your own keyboard or mouse triggers or filters, use low level keyboard or mouse hooks. Note that other hooks must be in a dll, so you need LOW LEVEL hooks.

Documented in the MSDN library:

http://msdn2.microsoft.com/en-us/library/ms644990.aspx

Example:

BlockInput2 - disable keyboard and/or mouse

Or use filter function. But then you will still need separate macros for each mouse button and important key.

---

To prevent minimizing or restoring a window you can change its style.

Code:
Copy      Help
int h=win("Quick Macros")
max h
SetWinStyle h WS_MINIMIZEBOX|WS_MAXIMIZEBOX 2|8


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)