autohotkey - AHK recursive map? (Map RAlt to RWin which is mapped to other keys) -
i have bunch of rwin+x => y
mappings. ralt
mapped rwin
rwin+x
== ralt+x
. example:
; rwin+j => left >#j::sendinput,{left}
which works fine, can hold down rwin
, press j
, keep sending left
. let's add before map following:
ralt::rwin
if hold ralt
press j
, send left
correctly, if keep holding ralt
, press j
again, send j
, not left
. have release ralt
, press again.
is there way fix that?
this came based on issue. it's work around solution:
#j:: if (getkeystate("ralt", "p") or getkeystate("rwin", "p")) { sendinput,{left} } return ralt:: while getkeystate("ralt", "p") { ; add key in {key} format followed period . want act endkey. input, key, l1 m t1, {space}.{esc}.{shift}.{enter} .{tab}.{backspace}.{alt}.{home} .{delete}.{pgup}.{pgdn}.{end} .{up}.{down}.{left}.{right} if (key <> "") { sendinput, {rwin down}{%key%}{rwin up} } if instr(errorlevel, "endkey:") send % "{" . strreplace(errorlevel, "endkey:") . "}" } return
Comments
Post a Comment