Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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
share|improve this answer
    
Actually U isn't exist in options of KeyWait command. Either: leave blank this parameter or use L letter. –  Grey Nov 30 '13 at 9:31
    
@Grey Yes you're right . I used U all the time as it was synonymous with D and it worked that way. Will correct the answer –  Avi Nov 30 '13 at 9:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.