-
Notifications
You must be signed in to change notification settings - Fork 0
/
permanent_numlock.ahk
50 lines (30 loc) · 1.51 KB
/
permanent_numlock.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#SingleInstance force
#installkeybdhook
SetNumLockState,On
SetNumLockState,AlwaysOn
return
; ;Run, C:\Program Files\USR-VCOM\USR-VCOM.exe,Min
; sleep, 1000
; Run, C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\Taran's Windows Mods\permanent_numlock.ahk,Min
; Sleep, 10000
; ExitApp
; ;-------------------
;https://autohotkey.com/boards/viewtopic.php?t=21434
; ; RunWait, %A_WinDir%\System32\schtasks.exe /create /TN [TaskName] /TR [Path\To\MyScript.exe] OR ["C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\Taran's Windows Mods\permanent_numlock.ahk"] /RL HIGHEST /SC ONLOGON
;C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\Taran's Windows Mods\permanent_numlock.ahk
; ;this code works, but it always launches a message box thingy asking if you're sure you want to run the program. No bueno.
; if not A_IsAdmin
; {
; Run *RunAs "%A_ScriptFullPath%"
; ExitApp
; }
;https://autohotkey.com/boards/viewtopic.php?t=21434
;RunWait, %A_WinDir%\System32\schtasks.exe /create /TN [TaskName] /TR [Path\To\MyScript.exe] OR ["c:\program files\AutoHotkey\autohotkey.exe" "PathTo\MyScript.ahk"] /RL HIGHEST /SC ONLOGON
/*
https://superuser.com/questions/1027228/is-it-possible-to-have-num-lock-always-on-without-the-ability-of-the-num-lock-k
https://superuser.com/questions/688889/permanently-disable-num-lock-in-windows
https://github.com/FaffyBucket/NUMlockCALC/blob/master/NUMlockCALC.ahk
https://autohotkey.com/board/topic/36222-trouble-remapping-capslock/
windows identifiers
https://autohotkey.com/docs/misc/CLSID-List.htm
*/