mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-01 16:56:38 +02:00
- WIP autoset keyboard type for Windows
This commit is contained in:
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