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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -