Windows – Use Right Ctrl + Right Alt combination in AutoHotKey

autohotkeykeyboard shortcutswindows

I am trying to create three key combinations in AutoHotKey. They are

A) Right Alt replaced by Right Click

B) Right Ctrl replaced by Left Click

C) Right Ctrl + Right Alt replaced by Shift + F10

The script I created is:

RCtrl::Click Right

RAlt::Click Left

RCtrl&RAlt::+F10

While Line B is working correctly, A & C are having problems.

Line A is sending Ctrl+Right Click instead of Right Click Only.

Line C is giving and error.

So, please help me fixing them.

Best Answer

A

RCtrl::
Keywait, Rctrl      ;wait for RCtrl to be released
Click Right
return

C
same way, wait for the keys to be released.

RCtrl & RAlt::
Keywait, Rctrl
Keywait, RAlt
Send +{F10}
return
Related Question