RCLens Posted February 13, 2018 Share Posted February 13, 2018 (edited) Hello, How to go to bottom in a log file? I tried _GUICtrlEdit_Scroll($idEdit, $SB_SCROLLCARET), but it seems to be related to GUIEdit. Thanks for your help. Edited February 13, 2018 by RCLens Link to comment Share on other sites More sharing options...
CosminV Posted February 13, 2018 Share Posted February 13, 2018 Hello, If I understood well and you want to see what is on the last line of an .txt then maybe this could be helpful: FileOpen($filepath, 0) $i = _FileCountLines($filepath) FileReadLine($filepath, $i) BR, CosminV Link to comment Share on other sites More sharing options...
RCLens Posted February 13, 2018 Author Share Posted February 13, 2018 (edited) The problem is that I can't use FileOpen and FileReadLine functions with my log file - yes, it's a log file and not a text file, my bad, I edited topic title. To open my log file I use ShellExecute("file.log") FileReadLine works fine for my log file. Edited February 13, 2018 by RCLens Link to comment Share on other sites More sharing options...
Zedna Posted February 13, 2018 Share Posted February 13, 2018 Look here and maybe also here for more inspiration Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
RCLens Posted February 13, 2018 Author Share Posted February 13, 2018 Thanks a lot Zedna, it's not what I was looking for, but your idea gave me another idea, that it could be really better that the subject of this topic : compare last and newest log file with FileReadLastChars and show what is added. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now