Author: Tuncay Last Modified: 20090412
strTail(): It assumes that lines are broken with
(preceding `r is ignored). With second parameter, the number of last lines can be specified.
strTail_last(): The second one should work faster, I think. The first parameter must be the name of the variable (ByRef) and also it does not have any second parameter.
This can be useful to read log files.
strTail(_Str, _LineNum = 1)
strTail_last(ByRef _Str)
For the functions's parameters and return value, please see it's source code.
Not sure if usage at demo file is correct.
The author wrote about the license:
"This script is of course free to change and republish for everyone, as per the AHK license."
"License, as mentioned before, is same as AutoHotkey's."
At this time of writing, it is GPL v2. Answer: http://www.autohotkey.com/forum/viewtopic.php?p=342625#342625
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=44677
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=262371#262371
The functions is an open source item under the CC By 3.0 license.
For details, please see http://creativecommons.org/licenses/by/3.0/
; #Include strTail.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Text = ( Text of Line 1 Text of Line 2 Text of Line 3 Text of Line 4 Text of Line 5 ) MsgBox % "'" . strTail(Text, 2) . "'" MsgBox % "'" . strTail_last(Text) . "'"