You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
522 B
Plaintext
23 lines
522 B
Plaintext
5 years ago
|
#SingleInstance force
|
||
|
#Persistent
|
||
|
#include Lib\AutoHotInterception.ahk
|
||
|
|
||
|
AHI := new AutoHotInterception()
|
||
|
|
||
|
keyboardId := AHI.GetKeyboardId(0x04F2, 0x0112)
|
||
|
AHI.SubscribeKeyboard(keyboardId, true, Func("KeyEvent"))
|
||
5 years ago
|
|
||
|
mouseId := AHI.GetMouseId(0x046D, 0xC00C)
|
||
|
AHI.SubscribeMouseButtons(mouseId, true, Func("MouseButtonEvent"))
|
||
5 years ago
|
return
|
||
|
|
||
|
KeyEvent(code, state){
|
||
5 years ago
|
ToolTip % "Keyboard Key - Code: " code ", State: " state
|
||
|
}
|
||
|
|
||
|
MouseButtonEvent(code, state){
|
||
|
ToolTip % "Mouse Button - Code: " code ", State: " state
|
||
5 years ago
|
}
|
||
|
|
||
|
^Esc::
|
||
|
ExitApp
|