Sign in to follow this  
Followers 0
Guest tamirousmc77

Help with Create/Write Log file

4 posts in this topic

I have reviewed basic samples and the help file to do this. I am pretty new to autoit but I understand the logic and concepts. I also have some background with NT and VB scripting but it is limited. My main problem is I need to create a log file and write specific information to it. When I use the macros for time and date all I receive it the actual macro word (@MON). Also I plan on putting text found within a windowbox into a variable and writing that to a line in the log file. Anyone help out? This is something I need quick help with! :)

Share this post


Link to post
Share on other sites

Use FileOpen + FileWriteLine or only FileWriteLine.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Have you tried using:

_FileWriteLog( $sLogPath, $sLogMsg )

This adds the date and time for you at the beginning of the line.

Edited by automagician

Share this post


Link to post
Share on other sites

Have you tried using:

_FileWriteLog( $sLogPath, $sLogMsg )

This adds the date and time for you at the beginning of the line.

<{POST_SNAPBACK}>

Need to put #include <file.au3> at the beginning of your script to include this functionality.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0