keilamym Posted April 23, 2008 Posted April 23, 2008 Do anyone know the autoit command to look for text in a file. I'd like auto it look in an inventory.log file and let me know if "timed out' exist. i thought i saw this on the site a while back but cant seem to find it... Any assistance is appreciated.. Keilamym
keilamym Posted April 23, 2008 Author Posted April 23, 2008 (edited) newbiescripter i use fileopen and fileread often.. i also use the while 1 command to send scripts into loops until the end of the file is reached.. but is there a way to have autoit actually look for "timed out" in the line? in the past, i has ping results read into an array and used the stdout, but the file is to for that. (atleast i think) again.. any assistance is appreciated. Edited April 23, 2008 by keilamym
weaponx Posted April 23, 2008 Posted April 23, 2008 If StringInStr(FileRead("inventory.log"), "timed out") Then ;Found Else ;Not found EndIf
keilamym Posted April 23, 2008 Author Posted April 23, 2008 (edited) If StringInStr(FileRead("inventory.log"), "timed out") Then;FoundElse;Not foundEndIfTHANKS... thats all i need to get me started... Edited April 23, 2008 by keilamym
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