AutoHotkey Community

It is currently May 27th, 2012, 4:10 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: April 26th, 2010, 12:44 pm 
Offline

Joined: April 18th, 2010, 11:33 am
Posts: 159
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2010, 7:42 pm 
Offline

Joined: February 7th, 2008, 9:48 pm
Posts: 509
Hi CyberGeek you seem to have a lot of ideas!!!!

I played around with this one and added seconds.

Image





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. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 29th, 2010, 7:56 am 
Offline

Joined: April 18th, 2010, 11:33 am
Posts: 159
excellent widget you made!

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


:D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 3:56 pm 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1833
Thanh00 wrote:
Hi CyberGeek you seem to have a lot of ideas!!!!

I played around with this one and added seconds.

Image





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. :)


Looks very nice!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg and 18 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