Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Elapsed Time Since Boot - Displayer


  • Please log in to reply
3 replies to this topic
CyberGeek
  • Members
  • 159 posts
  • Last active: May 10 2013 06:01 PM
  • Joined: 18 Apr 2010
Elapsed Time Since Boot - Displayer

#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

closed
  • Members
  • 509 posts
  • Last active: Jan 14 2012 06:14 PM
  • Joined: 07 Feb 2008
Hi CyberGeek you seem to have a lot of ideas!!!!

I played around with this one and added seconds.

Posted 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:
<!-- m -->http://www.autohotke...topic32238.html<!-- m -->

The programfiles are here:
<!-- m -->http://www.autohotke...me/boottime.zip<!-- m -->
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. :)

CyberGeek
  • Members
  • 159 posts
  • Last active: May 10 2013 06:01 PM
  • Joined: 18 Apr 2010
excellent widget you made!

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


:D

tic
  • Members
  • 1934 posts
  • Last active: Dec 21 2015 01:05 PM
  • Joined: 22 Apr 2007

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

I played around with this one and added seconds.

Posted 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:
<!-- m -->http://www.autohotke...topic32238.html<!-- m -->

The programfiles are here:
<!-- m -->http://www.autohotke...me/boottime.zip<!-- m -->
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!