Save the contents of the clipboard to a file
Posted: Jun 2nd, ’22, 18:36
If have this script to save the contents of the clipboard to a file:
Hotkey: CTRL + WIN + V
Command:
Can I append an ENTER command to the text before I write it to the file?
Thanks,
Peter
Hotkey: CTRL + WIN + V
Command:
Code: Select all
;Save clipboard contents to file
File:="p:\werkmap\klembord.txt" ;Filename and path
;FileDelete, %File% ;Only if you want to remove the old file first
clipboard := clipboard " Text to append." ;Append some text to the clipboard.
FileAppend, %Clipboard%, %File% ;Write to file
Thanks,
Peter