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 map a mouse button to mimic a single press of a ctrl key on the keyboard. (ctrl is used in a game I am playing to toggle displaying some extra info on the screen)

I've tried this but it doesn't seem to actually send the ctrl key:

RButton::
    Send ^
Return

If I do like this and send ctrl+c then it works (for the purposes of my game), which leads me to believe that the ^ only actually gets sent if it has another key to accompany it.

RButton::
    Send ^c
Return

I can't seem to find anywhere in the documentation that supports my theory. I am wondering if any one knows whether my hunch is correct and/or of a way that I can send just the ctrl key by itself.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Try using Send {LControl} or {RControl} depending on what key you wish to send.

share|improve this answer
    
Works perfect, thank you –  FoamyGuy Jun 23 '13 at 19:20

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.