- WIP autoset keyboard type for Windows

This commit is contained in:
Ben Reaves
2020-06-14 22:20:28 -05:00
parent 2249c4538d
commit 7f9ccabf77
2 changed files with 3649 additions and 0 deletions

19
windows/detectUSB.ahk Normal file
View 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
}