I use the following script to save my clipboards into a file:
Code: Select all
InputBox, mjmenosouboru, Save pasta to file:
cesta = c:\Users\...\AHK Files\%mjmenosouboru%.clip
FileDelete, %cesta%
FileAppend, %ClipboardAll%, %cesta%
Code: Select all
InputBox, mjmenosouboru, Load pasta to file:
cesta = c:\Users\...\AHK Files\%mjmenosouboru%.clip
FileRead, clipvariable, *c %cesta%
if not ErrorLevel
{
Clipboard := clipvariable
}
else
{
MsgBox, Pasta does not exist.
}
If I restart my PC, the pasta loads but all the formatting is forgotten, i.e. it loads just the text "THIS IS A BOLD RED STATEMENT".
Is there any way how can I make it so that it loads all the formatting?
The same thing happens for my drawings in Xournal - I can save and load my drawings from/to clipboard as long as I don't restart my PC. After I do, they will no longer load and I have to draw and save them again.
Thank you.