I would like an AHK script that will disable Capslock except when used with arrow keys as a shortcut for Home and End (with and without text selection). I believe it would look something like this, but I can't get figure out how to include the Shift key as a modifier so I may select text as well.
Capslock::Return
Capslock & Right::End
Capslock & Left::Home
Capslock & Right & Shift::End (with Selection)
Capslock & Left & Shift::Home (with Selection)
!CapsLock::CapsLock
to make alt-capslock behave as normal capslock. Mapping shift through+CapsLock...
fails with a messageInvalid hotkey
. Without delving into the problem I suspect a bug or that remapping capslock is tricky and shift-capslock does not let itself be handled in this way. – LosManos