Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Created November 10, 2015 11:15
Show Gist options
  • Save CTimmerman/e8704446ec6fd2c6cf18 to your computer and use it in GitHub Desktop.
Save CTimmerman/e8704446ec6fd2c6cf18 to your computer and use it in GitHub Desktop.
Type clipboard text using http://www.autohotkey.com/
; win + v
#v::
SendRaw %clipboard%
@penguinairlines
Copy link

Thanks!

I'll note that this did not completely solve my problem since RDP captures my hotkeys, but I got around it by adding a simple pause before the SendRaw. This allows me to copy string on client, initiate type script on client, re-focus active window to RDP or SSH session, script will type the clipboard text which is forwarded to the remote session.

					; win + v to activate this hotkey
#v::
Sleep, 2000 		; pause 2 seconds
SendRaw %clipboard% ; type clipboard contents.

If anyone knows which hotkeys are/aren't captured by RDP then this could be avoided with a more complex hotkey, but I couldn't find this information quickly and found this to be a decent enough solution for myself and got back to work.

P.S. Sorry for the weird tab formatting. Apparently gist can't support replies file types other than images. I'd love to stand corrected on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment