I hate needing to be lead by hand for this.. but I spent another hour or two trying to decipher the syntax needed for both of these to work correctly. Currently, I have no working solution. Unfortunately, this leads me to ask for another bit of help.. assume all the files are in the same folder. I want tail.exe to read the last line of a .txt file called paplogdemo.txt. From here, I want that last line to be placed in a variable workable by AHK. So, for example, if I do a
Code:
MsgBox %variable%
I will get told what the last line of the file is at that time. (I have a pretty solid idea in my head using loops to just redo that line of code over and over again, comparing to a separately stored copy of the last iteration for comparison to avoid trigger spamming if nothing changes). I've attempted the straight up code for AHK, using the suggested checking method of last update to the file, etc, but it doesn't appear to work correctly. It will only read the file to the end once no matter what I do.
Anyways, if you could shoot out the line needed to grab the output from tail.exe (with the definined parameters for the last line), I'd highly appreciate it. Thanks again.