Skip to content

Instantly share code, notes, and snippets.

@edwvilla
Created October 23, 2020 03:44
Show Gist options
  • Save edwvilla/f9fd6e1e7f2c2f60a6c637c4543bcd24 to your computer and use it in GitHub Desktop.
Save edwvilla/f9fd6e1e7f2c2f60a6c637c4543bcd24 to your computer and use it in GitHub Desktop.
My custom keys for autohotkey on a motospeed ck62 keyboard
SetCapsLockState, AlwaysOff
CapsLock & /::Up
CapsLock & SC15D::Down
CapsLock & SC138::Left
CapsLock & SC11D::Right
CapsLock & l::Home
CapsLock & .::End
CapsLock & ,::Delete
CapsLock & `;::PgUp
CapsLock & '::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send {~}
else
Send {``}
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & -::F11
CapsLock & =::F12
CapsLock & d::Send {vkB0sc119} ;Media_Next
CapsLock & a::Send {vkB1sc110} ;Media_Prev
CapsLock & s::Send {vkB3sc122} ;Play/Pause
CapsLock & c::Send {vkAFsc130} ;Volume up
CapsLock & x::Send {vkAEsc12e} ;Volume down
CapsLock & z::Send {vkADsc120} ;Volume mute
CapsLock & [:: Send {PrintScreen}
CapsLock & ]:: Send {Pause}
<+CapsLock::CapsLock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment