AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Elapsed Time Since Boot - Displayer

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
CyberGeek



Joined: 18 Apr 2010
Posts: 159

PostPosted: Mon Apr 26, 2010 11:44 am    Post subject: Elapsed Time Since Boot - Displayer Reply with quote

Elapsed Time Since Boot - Displayer

Code:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetBatchLines,-1
ListLines Off



CustomColor = EEAA99
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %CustomColor%
Gui, Font, s18
Gui, Add, Text, vMyText cBlack,XYZXYZXYZXYZXYZXYZXYZXYZXYZXYZXYZ
WinSet, TransColor, %CustomColor% 150
SetTimer, UpdateOSD, 200
Gosub, UpdateOSD
Gui, Show, x600 y90 NoActivate
return

UpdateOSD:
SetFormat,float,.0
Sec:=A_TickCount/1000
TotalMin := (Sec/60)
LeftMin:=Mod(TotalMin,60)
Hour:=(TotalMin - LeftMin)/60
;HM:=((LeftMin*60)+(Hour*60*60))
;SecLeft:=Sec-HM

StringLen, hourvar, hour
StringLen, minvar, Leftmin
if hourvar=1
   hour=0%hour%
if minvar=1
   Leftmin=0%Leftmin%

   
GuiControl,, MyText, Time Elapsed Since Boot: %hour%:%LeftMin%
;:;%SecLeft%

return


the "seconds" unit needs to be added
Back to top
View user's profile Send private message
closed



Joined: 07 Feb 2008
Posts: 509

PostPosted: Wed Apr 28, 2010 6:42 pm    Post subject: Reply with quote

Hi CyberGeek you seem to have a lot of ideas!!!!

I played around with this one and added seconds.







Iused the program to try out the Binary resource archive file format to add an animated GIF inside a custom skinned GUI.
If interested you can find the format and Tic's examle here:
http://www.autohotkey.com/forum/topic32238.html

The programfiles are here:
http://www.autohotkey.net/~yume/boottime.zip
The zip file has all the necessary libraries in it,they have to be in the same dir.
The file to start the program is boottime.ahk

Just for fun:
If you move the window to the left of the screen it gives real time ...move it to the right to get total uptime of the PC. Smile
Back to top
View user's profile Send private message
CyberGeek



Joined: 18 Apr 2010
Posts: 159

PostPosted: Thu Apr 29, 2010 6:56 am    Post subject: Reply with quote

excellent widget you made!

Quote:
Hi CyberGeek you seem to have a lot of ideas!!!!


Very Happy
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1796

PostPosted: Tue Jul 05, 2011 2:56 pm    Post subject: Reply with quote

Thanh00 wrote:
Hi CyberGeek you seem to have a lot of ideas!!!!

I played around with this one and added seconds.







Iused the program to try out the Binary resource archive file format to add an animated GIF inside a custom skinned GUI.
If interested you can find the format and Tic's examle here:
http://www.autohotkey.com/forum/topic32238.html

The programfiles are here:
http://www.autohotkey.net/~yume/boottime.zip
The zip file has all the necessary libraries in it,they have to be in the same dir.
The file to start the program is boottime.ahk

Just for fun:
If you move the window to the left of the screen it gives real time ...move it to the right to get total uptime of the PC. Smile


Looks very nice!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group