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
    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 '11 at 5:00
3
:*:pste::
Send %clipboard%
return
0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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