Sign in to follow this  
Followers 0
EmJ

Win uptime

4 posts in this topic

if i'm not asking for too much i would like to know how to get the windoiws uptime in AutoIT or give me a script about how can i do that

Share this post


Link to post
Share on other sites



#include <Date.au3>
$aTSB = DllCall ("kernel32.dll", "long", "GetTickCount")
$ticksSinceBoot = $aTSB[0]
dim $iHours, $iMins, $iSecs
_TicksToTime ( $ticksSinceBoot, $iHours, $iMins, $iSecs )
$iDays = int($iHours / 24)
$iHours = $iHours - ($iDays * 24)

Something like this !

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

thanx soo much guys i appreciate your help...

Edited by EmJ

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0