I have a few key mappings and macros I use via AutoHotkey. I have remapped control to capslock and I made a macro that lets me press ^, for home and ^. for end. This works perfectly fine if I press capslock and ',' or '.' once. But if I continue to hold down capslock and then press ',' or '.' again it just inserts the character. I get the expected behavior when I hold down the actual capslock key.
I've tried the suggestions from the answer in this question: Autohotkey, issue after mapping capslock::ctrl and that works -- except it changes the behavior from start/end of line to start/end of file.
Here is my code:
^,::Send, {Home}
^.::Send, {End}
Capslock::Ctrl