Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I'm making an autohotkey script to run highlighted text through a calculator, and i need to send the contents of the clipboard as a sequence of keypresses, since the calculator doesn't really support pasting of a mathematical operation. How would this be accomplished?

share|improve this question
up vote 1 down vote accepted

I fixed the original script you wrote here: http://superuser.com/questions/7271/most-useful-autohotkey-scripts/31282#31282 Works fine on my Vista system now.

share|improve this answer
    
The linked question has been deleted, making this answer useless. Please do not simply link to another resource as an answer. – Ross Jun 30 '13 at 22:46
    

To map Ctrl + K to send clipboard data for example:

^k::Send %clipboard%
share|improve this answer
    
It says that's not allowed as an output variable... – RCIX Aug 29 '09 at 4:22
    
what says that, the script? The script works for me I compiled and tested before posting. It should send the keys just as if it was keyboard input. – John T Aug 29 '09 at 4:39
    
My mistake, i din't pay enough attention to what line it had the error on... – RCIX Aug 29 '09 at 5:05
    
This won't include everything. The Send command tries to interpret certain characters, and they will be modified or excluded from the output (example: + and !). – Ross Jun 30 '13 at 22:50

You need to use a command like this to "type" exactly what's in the clipboard.

^+v::SendRaw %clipboard%

^+v means ctrl+shift+v. Replace with desired keyboard shortcut. See this page for which characters map to which modifier keys.

share|improve this answer

You must log in to answer this question.

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