Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Send double-click with Autohotkey

I'm trying paste text using Ctrl and right click in SQL Management Studio. I have this which works great in notepad++ but not in SSMS. I have the mouseclick there because I want it to paste where the mouse is. (I don't want the extra step of manually left clicking the location before pasting).

    MouseClick, left, , , 1
    Send ^v

By default, Ctrl+Left Click in SSMS selects the word (like double clicking a word) so what ends up happening when I use the hotkey is SSMS selects the word and then pastes the text overwriting what was there.

Is there a way I can have SSMS ignore the fact that I'm holding the ctrl key? I tried doing shift+right click, but it gives me a similar issue... it selects a text range before pasting.

Windows XP, latest version of AHK

edit: Grumble grumble, 2 min later I found the answer from here Send double-click with Autohotkey

send {LButton 2}   ; use this line instead of mouseclick

Please delete or close

share|improve this question

marked as duplicate by random Oct 28 '11 at 14:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Why not add your edit as a reply, and mark it as correct? It seems a useful answer to me. – Clare Macrae Oct 9 '11 at 21:37
up vote 1 down vote accepted

Found my answer.

send {LButton 2}   ; use this line instead of mouseclick
share|improve this answer

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