/classes/_docs/class_HotClass-README.md

https://github.com/Ixiko/AHK-libs-and-classes-collection · Markdown · 16 lines · 13 code · 3 blank · 0 comment · 0 complexity · f61833b2374a9a5f195284a983549b41 MD5 · raw file

  1. # HotClass
  2. A class that enhances AutoHotkey's input detection (ie hotkeys) capabilities
  3. Supports any combination of the following types of "key".
  4. Keyboard keys.
  5. Mouse Buttons: 1-5.
  6. Mouse Wheel: U,D,L,R.
  7. Joystick Buttons: 1-32
  8. Joystick POV Hat / Dpad Directions: U,D,L,R.
  9. Any number of keys, pressed in any order.
  10. ##How it works
  11. Keyboard / mouse input is read via `SetWindowsHookEx` callbacks. Blocking of Keyboard / mouse input can be achieved through this call.
  12. Joystick Button down events are handled by AHK's hotkey command, up events are simulated with a `GetKeyState` loop.
  13. Joystick POV Hat detection is done via a `GetKeyState` loop.