Jump to content
Macro Express Forums

Using Time In An If Statement


sixwingedfreak

Recommended Posts

If X amount of time has elapsed

Do this

Elapsed using what starting point?

 

If the time is currently X

Do this

This example simply displays a dialog box if the current time is between 13:00:00 and 14:00:00, otherwise it does nothing.

Date/Time: Save "hh:mm:ss" into %T1%
If Variable %T1% >= "13:00:00"
 AND
If Variable %T1% <= "14:00:00"
 Text Box Display:  --The time is now %T1%
End If

You'll find the Date/Time command under the text category!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...