Sign in to follow this  
Followers 0
Many

Error Parsing/write

3 posts in this topic

I'm wanting to add a feature to my program inwhich when an error happens it will write it to a log file of when the error happened and what information was contained withen the error ( like what it said )

and what was the date and time it occurred on..

But I'm trying to make it report more then one error info in a .txt file..

or do you think it would be easier to make the file save with the date/time and only single errors logged per file?

Anyways, its for rebooting a server whenever my friend is away, if an error occurs it will close the error box then close any processes inwhich runs the server then reboot the server by relaunching the program which launches the server and all its files..

I have the interface layed out, I also have some what of a wya on figuring the error in existance, aswell as seeing if it the process exists still when error is shown on the error..

I cannot figure the process in writing the date/time format and information contained withen the error to a file..

Could someone please help? thanks B) I only have a hour or two work in it right now.

Share this post


Link to post
Share on other sites



Welcome to the forums!

ControlGetText() can be used to read the text shown on a window. There are an assortment of time and date functions that can be used, but you might be looking for the _FileWriteLog() function which will automatically handle the date and time for you.

More information on these functions can be found in the help file. Good luck!

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