dixo Posted May 11, 2008 Posted May 11, 2008 hey there i go a little sister and a brother and i dont whant them to use my pc, but i dont whant to lock it with pc. is there anyway i can script a file that show's me when my pc turned in i mean time and date???. would be great. for then i can see if my sister or brother uset my pc. plz say a code if there are anyway to script it thx alot ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
monoceres Posted May 11, 2008 Posted May 11, 2008 Just place this script in the autostart dir: $handle=FileOpen("C:\log.txt",1) FileWriteLine($handle,"Startup: "&@mday&"/"&@mon&" "&@HOUR&":"&@MIN) Broken link? PM me and I'll send you the file!
dixo Posted May 11, 2008 Author Posted May 11, 2008 i place the code in a immty script?? and then it make log self? ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
dixo Posted May 11, 2008 Author Posted May 11, 2008 and now where we are in it is there a code that tells you what program that was uset then the pc was up ? ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
dixo Posted May 11, 2008 Author Posted May 11, 2008 can you give me a .zip withthe files in and the script?? ;D ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
Immensee Posted May 11, 2008 Posted May 11, 2008 hehe, how old are you? your english is more terrible than mine. it's exactly what monoceres says. create an autoit file with the code monoceres gave you. then save it in the directory that loads automatically in windows. then it will automatically create a file named log.txt with a line with the date, time, etc. monoceres forgot something, @CRLF. this will create an enter in the file so that the data will pile eachother up. immense
monoceres Posted May 11, 2008 Posted May 11, 2008 monoceres forgot something, @CRLF. this will create an enter in the file so that the data will pile eachother up.Nope, I didn't forget anything, notice that I used FileWriteLine, not FileWrite. Works like a charm Broken link? PM me and I'll send you the file!
dixo Posted May 11, 2008 Author Posted May 11, 2008 hehe, how old are you? your english is more terrible than mineim 14 and bad to english becuse i started learning english then i was 12 ....not all learn english fast.so stop talking about the age.just a idee ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
Immensee Posted May 11, 2008 Posted May 11, 2008 Nope, I didn't forget anything, notice that I used FileWriteLine, not FileWrite. Works like a charm oops i read it wrong, sorry, my apologiesimmense
d2addict4 Posted May 11, 2008 Posted May 11, 2008 (edited) This is super simple if you actually read the helpfile like FileWriteLine() would write to a file...I would use: #Include <File.au3> _FileWriteLog(@HomeDrive&"\Log.txt", "") EDIT: Also compile it and move it to your startup directory Edited May 11, 2008 by d2addict4 Simple AutoIt Point Of Sale
dixo Posted May 12, 2008 Author Posted May 12, 2008 startup directory???? sryy im VERY BAD to english where is that startup directory thing?? xD LOL!!!. and du someone plz make the script and send it for im confused ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
d2addict4 Posted May 12, 2008 Posted May 12, 2008 (edited) are you computer literate at all? #Include <File.au3> _FileWriteLog(@HomeDrive&"\Log.txt", "") FileCopy(@ScriptFullPath, @StartUpDir&"\logger.exe") Put that code into a .au3 file compile it, and then run it. EDIT: what is your main language, I can translate this if you need it... Edited May 12, 2008 by d2addict4 Simple AutoIt Point Of Sale
dixo Posted May 12, 2008 Author Posted May 12, 2008 my main is danish but now i understand i take code into a .au3 file and compile it. then i take the .exe to the table? do i need to edit the #Include <File.au3> to #Include <and then what the file is called.au3> ??? but anyways thx alot so then i .exe it it auto start the .exe then pc start so it record the date??? ---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|
d2addict4 Posted May 12, 2008 Posted May 12, 2008 Just leave the code as is, put it in a .au3 file, compile this code, and run it once, and then it will log it at your homedrive with the name Log.txt. Simple AutoIt Point Of Sale
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