1
votes

I am trying to build a very simple AutoHotkey script but it doesnt seem to be working. I've bought a keyboard with no Win key and no programable hardware layer so I am planning on using AHK to remap the Alt Gr key to the Windows key.

Can anypoint give me pointers to where I am going wrong.

<^>!l::
MsgBox Win L pressed.
return

<^>!r::
Send {# down}
Send {r down}
Send {# up}
Send {# up}
return

<^>!e::
SendInput #&e
return
1
I suggest you try the following line: ralt::lwinRobert Ilbrink

1 Answers

0
votes

Using your middle example, it'd be like so:

<^>!r::
SendInput, {LWin Down}r{LWin Up}
Return

You can use RWin or LWin per your preference since it really shouldn't matter at the software level.