Skip to content

Instantly share code, notes, and snippets.

@andkirby
Created January 30, 2020 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andkirby/446f060f61c74e07585c9fd7cc68e9f5 to your computer and use it in GitHub Desktop.
Save andkirby/446f060f61c74e07585c9fd7cc68e9f5 to your computer and use it in GitHub Desktop.
AutoHotKey. Test reading rich text from a file
#ClipboardTimeout 2000
#SingleInstance force
; Working example
; You may test in some wysiwyg editor
; Win + R — Write clipboard
#r::
{
ClipWait
FileAppend, %ClipboardAll%, %A_ScriptDir%\Test.clip
}
; Win + T — Paste a saved clipboard in the file
#t::
{
FileRead, Clipboard, *c %A_ScriptDir%\Test.clip
ClipWait
Send, ^v
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment