Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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
    

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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