Consider the following assignment:
When I type -
followed by a key
, the result is Ctrl-key
. This work for ordinary keys.
But when the key is whitespace, it does not work.
Any idea why this happens? And how to fix the code?
-::
Input, key, L1,{LCtrl}
send, ^{%key%}
return
Edit.
Try to run the above script a program which has Ctrl-Space as a shortcut to see that it does not work. In fact, if you press -
followed by Space
, the script is suppose to call Ctrl-Space
but it is not the case. For example:
- In Microsoft Excel or in Libreoffice Calc, Ctrl-Space can select the current column.
- In Emacs Ctrl-Space is reserved for setting a Mark.
Space
,Tab
, orEnter
keys, but from theInput
docs: "Whitespace characters such as Tab (`t) are stored literally. Enter is stored as linefeed (`n)." Could you possibly give us specific examples of keys that do not function correctly? – SpyreEndkeys
. For example I modified the code in order thatLCtrl
is the onlyEndkey
, but it does not work either. See the modified code above. – Name