This ahk script is Edit from https://github.com/Vonng/Capslock
To avoid accidental touches and other possible key mapping conflicts, I removed most of the functions and kept only the important ones
For other key mapping, I personally suggest to use Microsoft PowerToys . You can download it in Microsoft store
- Download and run
Capslock.exe
CapsLock + h | Left
CapsLock + j | Down
CapsLock + k | Up
CapsLock + l | Right
CapsLock + i | Home
CapsLock + o | End
CapsLock + u | PageUp
CapsLock + p | PageDown
Shift, Alt (replaces the Ctrl) Compatible
CapsLock + w | Ctrl + Right (Move as [vim: w]);|
CapsLock + b | Ctrl + Left (Move as [vim: b])
CapsLock + Up | Mouse Up
CapsLock + Down | Mouse Down
CapsLock + Left | Mouse Left
CapsLock + Right | Mouse Right
CapsLock + Enter(Push Release) | Mouse Left Push(Release)
CapsLock + n | Ctrl + Delete (Delete a Word)
CapsLock + m | Delete
CapsLock + , | BackSpace
CapsLock + . | Ctrl + BackSpace
-
right click
Capslock.exe
then selectcreate shortcut
-
press
win + R
and typeshell:startup
thenenter
-
paste or cut the shortcut in the pop-up window. the path for the file explorer is :
C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup