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