Hey thanks for the reply!
I think you have misunderstood how AHK hotkeys work. It will always fire the "longest" hotkey before "shorter" hotkeys
Well, I am a total nub to this, I admit. Not actually sure what you mean by the above, by 'longest' you mean the shifted one right?
Your code example makes total sense, that's what I would expect to happen.
However for the Remap code it seemed to cause strange issues.
Like I described above, when I used the remap syntax so like this:
It would scroll constantly to the left when just holding A... I found it somehow seemed to matter what *order* the keys were mapped in the script - which seemed to me to be very strange - order of the mappings should not matter right?
And stranger, I could for instance comment out
+e::e and magically the script would work as expected again
Either there is something strange with the application and how it does things, or my understanding of this is seriously flawed. Probably the latter
Are you trying to make it so that the a::Left binding still works if shift is held?
Actually the opposite, I would prefer Shift+A to still work like before, but just A to send a LeftArrow - while held down. However with the remap function it seemed I had to remap the shifted keys too.
To avoid this:
Basically the code you quote below here is the code from the remap documentation right? I tried to avoid this by using the remap shorthand which apparently uses the same syntax with the {Blind} keyword in the background, which I've not really understood yet.
So I decided to move away from the Remap code and do it the long-winded way, and for the WASD-keys I have this:
Code: Select all
w::
Send,{Up down}
KeyWait, w
Send,{Up up}
Return
I need the extra logic there to make the scrolling work, it seems? While for the regular remaps I have this simpler version:
Code: Select all
+a:: ;Shift+A - Air Unit Report
Send a
Return
It works fine now, but seems a lot less elegant than using the Remap functions, which would be preferable.
But I really don't want to 'hard' remap the keys, I want to just send different keys when pressed or held down, while still retaining the keys for Shift or Ctrl.
Maybe I'm just going about this in a strange and convoluted way, so any tips or pointers from those with experience appreciated