Jump to content

help getting day and hour


Recommended Posts

Hi everyone, I'm having trouble getting day and hour variables from my computers clock. What I'm trying to do is if it is a certain day/hour then my program runs. Can anyone show me an example If statement? I looked around the forums and I don't understand anything in the help file related to this. Thanks.

Link to comment
Share on other sites

maybe...

$start = @MDAY & "/" & @HOUR + 1 ; for testing

While 1

    $start2 = @MDAY & "/" & @HOUR

    If $start = $start2 Then
        Run("notepad.exe")
        Exit
    EndIf

    ToolTip("Start Time = " & $start & @CRLF & "Real Time = " & $start2, 20, 20, "Time Machine", 1)
    Sleep(2000)

WEnd
Exit

8)

Edited by Valuater

NEWHeader1.png

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
 Share

  • Recently Browsing   0 members

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