mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- WIP autoset keyboard type for Windows
This commit is contained in:
3630
system-config/keyboard.ids
Normal file
3630
system-config/keyboard.ids
Normal file
File diff suppressed because it is too large
Load Diff
19
windows/detectUSB.ahk
Normal file
19
windows/detectUSB.ahk
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#SingleInstance, force
|
||||||
|
OnMessage(0x219, "notify_change")
|
||||||
|
Return
|
||||||
|
|
||||||
|
lastnotify := 0
|
||||||
|
|
||||||
|
notify_change(wParam, lParam, msg, hwnd)
|
||||||
|
{
|
||||||
|
global lastnotify
|
||||||
|
T = %A_Now%
|
||||||
|
T -= 19700101000000,seconds
|
||||||
|
Tdiff := T
|
||||||
|
Tdiff -= lastnotify
|
||||||
|
if Tdiff > 5
|
||||||
|
{
|
||||||
|
MsgBox % Tdiff
|
||||||
|
}
|
||||||
|
lastnotify := T
|
||||||
|
}
|
Reference in New Issue
Block a user