I'm making a clipboard manager style program and would like to have many small clipboards available long term. I'd like to store them as text strings in my source code and then convert them to ClipboardAll buffers when I want to use them.
Currently I'm keeping each clipboard in a different file, like this example from the help file:
If it were possible to write multiple ClipDatas to a single binary file, that would work great, too.
Code: Select all
; to write one of the clipboards to a file: ClipData := ClipboardAll() FileOpen("Company Logo.clip", "w").RawWrite(ClipData) ; to later load it back into the clipboard: ClipData := FileRead("Company Logo.clip", "RAW") ; In this case, FileRead returns a Buffer. A_Clipboard := ClipboardAll(ClipData) ; Convert the Buffer to a ClipboardAll and assign it.