vkrisz81 Posted April 9, 2016 Posted April 9, 2016 (edited) hello what is the actual method to save log datas to file? i mean i dont want direct make lines, i want to see console output in a file. i would be able to overwrite for example ie.au3 consolewrite lines to an outern function but i wanted to know if there is a better way..? thankyou Edited April 9, 2016 by vkrisz81
markyrocks Posted April 9, 2016 Posted April 9, 2016 ;somthing happened _LogEvent("something happened") func _LogEvent($event) $file=fileopen("log.txt",1) if $file=-1 then msgbox("","","file failed to open") endif filewriteline($file,_Now() & $event) fileclose($file) endfunc I use something like this Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning"
vkrisz81 Posted April 9, 2016 Author Posted April 9, 2016 yes i know it but how i attach it to for example ie.au3? should i change the ie.au3 udf file??? there is no any builtin possibility ?
markyrocks Posted April 9, 2016 Posted April 9, 2016 I would not change the ie.au3. Just build a new file. #include <ie.au3> Just copy and paste the example code into the new file. You could even copy the entire file but I wouldn't recommend changing the original. Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning"
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