Deathgigas Posted January 16, 2007 Posted January 16, 2007 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.
Edgar Posted January 16, 2007 Posted January 16, 2007 (edited) Try this : msgbox(0,"TEST",@Year&"/" &@Mon &"/" &@MDay &" " &@Hour &":" &@Min &":" &@Sec) Edited January 16, 2007 by Edgar
Valuater Posted January 16, 2007 Posted January 16, 2007 (edited) 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 January 16, 2007 by Valuater
Deathgigas Posted January 17, 2007 Author Posted January 17, 2007 Thanks guys, got what I needed and more!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now