Jump to content

Script not working

Recommended Posts

So by what I can see, you want the computer to shut down in 3 hours right? Try this:

#include <Date.au3>
$cTime1 = _NowTime (5)
$ctime = StringSplit ($cTime1, ":")
$eTime = $cTime[1] + 3 & ":"& $ctime[2] &":"&$ctime[3]
MsgBox (0, "", "Alarm Set: " & $ctime1 & @CRLF & "Alam Will Go Off At: " & $eTime)

While 1
    If _NowTime (5) = $eTime Then
        MsgBox (0, "Alarm!", "The Times up!")
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...