Re: [library] TF: Text files & Variables (strings) v3.5
Posted: 09 Apr 2017, 10:44
Hi.
Found some bugs.
1) If I have this string in ClipBoard then I will have an error:
2) If I have any filename (not file content) in Clipboard - I also will get error:
3) If I have filename with first letter "!" then I will have error.
For example I am waiting that script creates copy of !TestFile.txt but it modifies it.
Found some bugs.
1) If I have this string in ClipBoard then I will have an error:
Code: Select all
Clipboard=00000
Clipboard:=TF_TrimLeft(Clipboard,1,1,3)
MsgBox % Clipboard
Code: Select all
Clipboard=c:\1.txt
Clipboard:=TF_TrimLeft(Clipboard,1,1,3)
MsgBox % Clipboard
For example I am waiting that script creates copy of !TestFile.txt but it modifies it.
Code: Select all
TestFile= ; create variable
(join`r`n
1 Hi this
2 a test variable
3 to demonstrate
4 how to
5 use this
6 new version
7 of TF.AHK
)
FileDelete, !TestFile.txt
FileAppend, %TestFile%, !TestFile.txt ; create file
TF_TrimLeft(!TestFile.txt,1,1,3)