Jump to content
Sign in to follow this  
Deathgigas

help getting day and hour

Recommended Posts

Deathgigas

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.

Share this post


Link to post
Share on other sites
Valuater

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

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  

×