-
-
Save eduardomartines/371b790d1c102bccca6db9a25ad2b464 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetCapsLockState, AlwaysOff | |
CapsLock & ,:: Send {Del} | |
CapsLock & .:: Send {End} | |
CapsLock & k:: Send {Ins} | |
CapsLock & l:: Send {Home} | |
CapsLock & `;:: Send {PgUp} | |
CapsLock & ':: Send {PgDn} | |
CapsLock & [:: Send {PrintScreen} | |
CapsLock & ]::Send {Pause} | |
; Functions | |
CapsLock & 1::Send {F1} | |
CapsLock & 2::Send {F2} | |
CapsLock & 3::Send {F3} | |
CapsLock & 4::Send {F4} | |
CapsLock & 5::Send {F5} | |
CapsLock & 6::Send {F6} | |
CapsLock & 7::Send {F7} | |
CapsLock & 8::Send {F8} | |
CapsLock & 9::Send {F9} | |
CapsLock & 0::Send {F10} | |
CapsLock & -::Send {F11} | |
CapsLock & =::Send {F12} | |
CapsLock & Backspace::Delete | |
CapsLock & Escape:: | |
If GetKeyState("Shift") | |
Send {~} | |
Else | |
Send {``} | |
Return | |
; Arrow Up | |
Capslock & /:: | |
If GetKeyState("Shift") | |
Send +{Up} | |
Else | |
Send {Up} | |
Return | |
; Arrow Left | |
Capslock & RAlt:: | |
If GetKeyState("Shift") && GetKeyState("LWin") | |
Send +{Home} | |
Else | |
If GetKeyState("Shift") && GetKeyState("Control") | |
Send +^{Left} | |
Else | |
If GetKeyState("Shift") | |
Send +{Left} | |
Else | |
If GetKeyState("LWin") | |
Send {Home} | |
Else | |
If GetKeyState("Control") | |
Send ^{Left} | |
Else | |
Send {Left} | |
Return | |
; Arrow Down | |
Capslock & AppsKey:: | |
If GetKeyState("Shift") | |
Send +{Down} | |
Else | |
Send {Down} | |
Return | |
; Arrow Right | |
Capslock & RControl:: | |
If GetKeyState("Shift") && GetKeyState("LWin") | |
Send +{End} | |
Else | |
If GetKeyState("Shift") && GetKeyState("Control") | |
Send +^{Right} | |
Else | |
If GetKeyState("Shift") | |
Send +{Right} | |
Else | |
If GetKeyState("LWin") | |
Send {End} | |
Else | |
If GetKeyState("Control") | |
Send ^{Right} | |
Else | |
Send {Right} | |
Return | |
; Arrows Alternative | |
CapsLock & w::Send {up} | |
CapsLock & a::Send {left} | |
CapsLock & s::Send {down} | |
CapsLock & d::Send {right} | |
; Volume | |
CapsLock & c::Send {Volume_Up} | |
CapsLock & x::Send {Volume_Down} | |
CapsLock & z::Send {Volume_Mute} |
This was really helpful, indeed!
I've just uploaded the xmodmap version of those bindings for Linux users as well, based on your gist ;)
https://gist.github.com/luccamendonca/df48e9a0e0dd5ea8333c5ba4bafd62d3
Sorry, but how to activate capslock?
capslock and up doesn't work for me, any ideas why?
wasd works fine, but "/" does not
@edwvilla you might have the "3" layer active. Just hold Fn + 3 for 5 seconds and the 3 key should switch color (meaning that the layer was desactivated)
hello guys
May I know how to run the script please ?
because i'm very confused i need a little help
thank you !
@gomarizi Install the AutoHotKey in https://www.autohotkey.com/ for work
Como faz para o capslock funcionar?
If you want to lock the CapsLock just press Shift + CapsLock
i want to add numpad function how ?
Any solution for linux based systems?
If you want to lock the CapsLock just press Shift + CapsLock
Shift + Capslock can unlock it but how to lock it again ?
So much thanks!!