1

My case is simple and i don't know what i'm doing wrong, the tutorial is clear about this, it should work. When i write pste i want the contents of the clipboard send as keystrokes(i'm using it to paste text in windows console that do not support ctrl+v) so far i've tried

:*:pste::Send, %clipboard%
:*:pste::Send %clipboard% ;no comma
:*:pste::%clipboard% 
:*:pste::clipboard
:*:pste::%Clipboard%
:*:pste::Send, %Clipboard%
:*:pste:: %clipboard%
:*:pste:: %Clipboard%

in every single case it writes down the text after :: so i type pste and the script writes %clipboard% or Send, %Clipboard% and so forth if it matters im not compiling the ahk

1
  • 1
    If you got it to work, please post the solution as an answer and not an edit. I'm getting rid of the edit so you can put it as a real answer.
    – Wuffers
    Apr 20, 2011 at 5:00

2 Answers 2

3
:*:pste::
Send %clipboard%
return
0

According to http://www.autohotkey.com/docs/Hotstrings.htm variables are not supported in hotstrings.

1
  • You can't use them inline, but see the accepted answer to see how to use them.
    – yhw42
    Nov 18, 2012 at 13:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .