markj Posted April 4, 2006 Posted April 4, 2006 Hi, I have a GUI to control software that we use. For auditing purposes i would like some logging on this. To start with i would assume that i have a simple gui with two buttons, button1 and button2 everytime i press one of these buttons it appends to a log file (txt file) with button1 and a time and date stamp. I have had a look around but cant find anything similar. Any help would be appreciated. Thanks
Lakes Posted April 4, 2006 Posted April 4, 2006 (edited) Hi, I have a GUI to control software that we use. For auditing purposes i would like some logging on this. To start with i would assume that i have a simple gui with two buttons, button1 and button2 everytime i press one of these buttons it appends to a log file (txt file) with button1 and a time and date stamp. I have had a look around but cant find anything similar. Any help would be appreciated. Thanks From the Beta Help... #include <file.au3> ; _FileWriteLog(@ScriptDir & "\my.log","Text 1") ; _FileWriteLog(@ScriptDir & "\my.log","Text 2") Edited April 4, 2006 by Lakes 2015 - Still no flying cars, instead blankets with sleeves.
markj Posted April 4, 2006 Author Posted April 4, 2006 how do i declare what directory is @scriptdir???? thanks
Moderators SmOke_N Posted April 4, 2006 Moderators Posted April 4, 2006 how do i declare what directory is @scriptdir????thanksPut the script that your writing in the directory that you want to be your scriptdir? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
RazerM Posted April 8, 2006 Posted April 8, 2006 @ScriptDir refers to the exact folder the script/compiled program is in My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
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