I am trying to block the 4 key but remap the 4 key to the letter j key. So if i press 4 nothing will happen but if i press j then it will type 4.
I understand j::4 but then i can still press the number 4 on my keyboard. Any suggestions?
Remap key and disable Original key Topic is solved
Re: Remap key and disable Original key Topic is solved
Code: Select all
j::4
$4::return
Re: Remap key and disable Original key
Thank you so much. If you dont mind. Can you explain the significance of the "$" and the Return in this instance? Thanks again!
Re: Remap key and disable Original key
The hotkey 4::return would execute the command return command and do nothing else, effectively disabling the 4 key. But then the mapped j key would also do nothing, so the $ in front of it makes the hotkey only react to physical keypresses, not virtual ones, so the mapped j does not trigger the hotkey and continues to produce a 4. See Hotkey Modifier Symbols.