Jump to content
Sign in to follow this  
Guest tamirousmc77

Help with Create/Write Log file

Recommended Posts

Guest tamirousmc77

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
SlimShady

Use FileOpen + FileWriteLine or only FileWriteLine.

Share this post


Link to post
Share on other sites
automagician

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
Blue_Drache

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.