Infinitex0 Posted February 15, 2006 Share Posted February 15, 2006 (edited) I was just bored and messing around with macros and I made this script. Just make a new text document labeled log.txt and put it where ever you want just make sure the address in the script is the same as the address for where ever you put the text document. #NoTrayIcon $file = FileOpen("C:\Documents and Settings\Owner\My Documents\log.txt", 1) ; Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWriteLine($file, "Day Of Year: " & @YDAY) FileWriteLine($file, "Day Of Week: " & @WDAY) FileWriteLine($file, "Year: " & @YEAR) FileWriteLine($file, "Month: " & @MON) FileWriteLine($file, "Day Of Month: " & @MDAY) FileWriteLine($file, "Hour: " & @HOUR) FileWriteLine($file, "Minute: " & @Min) FileWriteLine($file, "Second: " & @SEC) FileWriteLine($file, "User: " & @UserName) FileWriteLine($file, "Operating System: " & @OSVersion) FileWriteLine($file, "===============Seperate===============") FileClose($file) This is my first submited script so any and all feedback would be appreaciated. EDIT: Put this in your startup folder Edited February 16, 2006 by Infinitex0 The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
rambo3889 Posted February 15, 2006 Share Posted February 15, 2006 Nice little tool My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Nuffilein805 Posted February 15, 2006 Share Posted February 15, 2006 @infinitex0: why do you need that? if you would log the pw than it might be useful for some people, so they could check the admin-acc, but for normal users with admin-rights this is kinda useless but, i've got some suggestions anyway: 1. maybe log the progs a user opens + time when opened + time used 2. as i said pw's might be useful (not logged when admin logs in - maybe configurable or stored in a safely encrypted file) 3. for internet-apps a sitelog would be usefull if you could do that as well, than this little prog would be really nice my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Infinitex0 Posted February 16, 2006 Author Share Posted February 16, 2006 yeah but thats about as close as you can get to a key logger.(I think) The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
doyle.jack Posted February 16, 2006 Share Posted February 16, 2006 Log it on CSV format and to a server share. That way it can be used for something. I created a similar script for a customer and they run it at logon and logoff and it writes to a share and they can import it into Excel. Link to comment Share on other sites More sharing options...
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