AutoHotkey Community

It is currently May 27th, 2012, 12:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: login time need
PostPosted: July 30th, 2011, 12:00 pm 
Offline

Joined: July 10th, 2011, 3:04 pm
Posts: 8
How can i get the my login time and log off time in a text file. if anybody know that -please reply me


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2011, 2:20 pm 
Offline

Joined: September 10th, 2010, 9:44 pm
Posts: 47
Location: Virginia
Here is an example. You could put this script in your startup directory, and it would launch and exit as you log in and log off your computer. The script simply records its launch time and its exit time.

Take a look at the OnExit documentation.

Code:
#Persistent

logfile := A_Desktop . "\test output.txt"

OnExit, ExitSub
FileAppend,Script launched [%A_NOW%]`r,%logFile%
return

ExitSub:
   FileAppend,Script exited [%A_Now%] (because of "%A_ExitReason%")`r,%logFile%
exitApp

_________________
My Scripts
I use QuickBBCode!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2011, 3:43 pm 
Offline
User avatar

Joined: October 18th, 2008, 2:09 pm
Posts: 430
there's other threads on this topic, like:

http://www.autohotkey.com/forum/viewtop ... ight=login


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad, jrav, MSN [Bot] and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group