Created
January 30, 2020 12:29
-
-
Save andkirby/446f060f61c74e07585c9fd7cc68e9f5 to your computer and use it in GitHub Desktop.
AutoHotKey. Test reading rich text from a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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