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).
^RButton::
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