Lets say I have x
key, and I want use it as a “modifier” so that I can combine it with other hotkeys, like so:
x
& andy
x
& andw
x
& andz
In order to do this, I need to use ~
:
#singleinstance, force
~x::
;~$x:: ;I tried this, thinking '$' to mean to disables the keys default function. Didnt work
tooltip, X pressed
return
x & y::
tooltip, X and Y pressed
return
But now, the active windows shortcut for x
will also fire, in some windows this could be simply typing x
, in others firing a command. In effect AutoHotkey fails in blocking x
.
This has been a issue that has been plaguing me for a long time, ~
will allow you to combine its hotkey with other keys but then also disables AHKs ability to block the hotkeys default shortcut.
This int really a AhkV1/V2 issue. I am sure the same issues is present in V2 as well