Hugov or anyone else who can help with the TF() Library.
Thanks for any help you can provide.
Why is the "Clipboard" the only example that works?
Do I have a Syntax Error in my various examples? I don't get any Error Messages
What am I doing wrong? As you can see I tried many different forms
and they all FAILED, except Clipboard
The results are either BLANK Msgbox's or the TEXT in Quotes in the function call
UNCOMMENT any single example below to see the results.
I'm using TF.ahk Version 3
Code:
; TF_RemoveLinesFile
; Why is the "Clipboard" the only example that works?
; Do I have a Syntax Error in my various example? I don't get any Error Messages
; What am I doing wrong? As you can see I tried many different forms and they all FAILED, except Clipboard
; Comment or UnComment each example to see my test results
; From TF_RemovelinesClipboard - http://www.autohotkey.com/forum/topic50519.html
; Date: 12/1/2009 10:11:08 PM
; Removes selected lines from clipboard
;#include tf.ahk ; Uncomment if TF.ahk is not in the Autohotkey LIB folder
; FileAppend, %clipboard%,%A_ScriptDir%\TFTestFile.txt ; uncomment to create the TFTestFile.txt
;clipboard = ; Clear clipboard
/* ; uncomment to store data to clipboard
clipboard = ;save example data into clipboard
(
Regular Expressions (RegEx) for AutoHotkey - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/topic12827.html
Ask for Help - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/forum-1.html&sid=e36d0a14e79ead25cda36a384d6c99b9
Using ++ in function call (aka short code camp course) - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/viewtopic.php?p=84194#84194
Put here requests of problems with regular expressions - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/viewtopic.php?t=13545&postdays=0&postorder=asc&highlight=regex&start=240
Search - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/search.php?search_id=1832159812&start=150
Match negation of Regular Expression - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/topic18626.html&highlight=regexmatch+stringsplit
[TIPS] A collection/library of regular expressions - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/viewtopic.php?t=13544
Create basic browser that can autofill forms? - Internet Explorer provided by Dell;http://www.autohotkey.com/forum/viewtopic.php?p=313104#313104
)
;*/ ; uncomment to store data to clipboard
; Examples from TF() Tutorials
; http://www.autohotkey.com/forum/viewtopic.php?p=280363#280363
; http://www.autohotkey.net/~hugov/tf-lib.htm#TF
;-----------------------------------------
; t:=TF_ReadLines(TF("TestFile.txt"),5) ; example from TF Tutorial
; MyVar:=TF_ReadLines(TF("TestFile.txt","MyVar"),5) ; example from TF Tutorial
; TF_RemoveLines("!" . F,5) ; pass on file, remove from line 5 to end of file
;TF_RemoveLines("!" . F,5) ; pass on file, remove from line 5 to end of file. Note the ! to indicate TestFile.txt will be the output file
;t:=TF_RemoveLines(TF(F),5) ; pass on variable created by TF(), remove from line 5 to end of var
;-------------------------------------------------------
;F=%A_SCRIPTDIR%\TFTestFile.txt ; FAILED
;F=TFTestFile.txt ; FAILED
; TF removes the 3rd line of list of URL's
; Uncomment one example line below to test TF_RemoveLines
;Clipboard:=TF_RemoveLines(clipboard, 3, 3) ; will delete line 3 from clipboard PASSED
;NewFile:=TF_RemoveLines(clipboard, 3, 3) ; PASSED
;NewFile:=TF_RemoveLines(TF("C:\AHK Verified Scripts\TFTestFile.txt", "NewFile"), 3, 3) ; FAILED
;NewFile:=TF_RemoveLines(TF("TFTestFile.txt", "NewFile"), 3, 3) ; FAILED
;NewFile:=TF_RemoveLines(TF(A_ScriptDir "\TFTestFile.txt", "NewFile"), 3, 3) ; FAILED
;NewFile:=TF_RemoveLines(TF(F, "NewFile"), 3, 3) ; FAILED
;NewFile:=TF_RemoveLines(F, 3, 3) ; FAILED
;NewFile:=TF_RemoveLines("!" . F,3,3) ; FAILED
;Clipboard:=TF_RemoveLines("TFTestFile.txt", 3, 3) ; FAILED
;Clipboard:=TF_RemoveLines("C:\AHK Verified Scripts\TFTestFile.txt", 3, 3) ; FAILED
;t:=TF_RemoveLines(TF("TestFile.txt"),3,3) ; FAILED
;Clipboard:=TF_RemoveLines(TF("TestFile.txt"),3,3) ; FAILED
; Uncomment one Msgbox line below to test TF_RemoveLines
;MsgBox % t
;MsgBox % NewFile
;MsgBox % Clipboard
;sTooltip(clipboard, 8)
;sTooltip(NewFile, 8)
_________________
"Man's quest for knowledge is an expanding series whose limit is infinity"