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?
익명
05:13
AutoHotkey: how to send the clipboard's content as key presses?
AutoHotkey: how to send the clipboard's content as key presses?
Top Answer/Comment:
Top Answer/Comment:
I fixed the original script you wrote here: https://superuser.com/questions/7271/most-useful-autohotkey-scripts/31282#31282 Works fine on my Vista system now.
The code snippet in question, dredged up from the depths of the Wayback Machine:
^!c::
ClipSave := ClipboardAll
Send ^x
Run calc.exe
WinWaitActive Calculator
Send ^v
Send {Enter}
Sleep 250
Send ^c
WinClose
Send ^v
Clipboard := ClipSave
return
상단 광고의 [X] 버튼을 누르면 내용이 보입니다