Jump to content

Recommended Posts

Posted (edited)

Hi

I have been looking for something that makes a script to start and exit at special times and I think that

@Hour and @Min should do it ,but I don't understand how they work.

can some1 give me an example.

thx in advance

Edited by matumbo
Posted

Hi

I have been looking for something that makes a script to start and exit at special times and I think that

@Hour and @Min should do it ,but I don't understand how they work.

can some1 give me an example.

thx in advance

00 - 24

example:

Do
Sleep(500)
Until @HOUR = "08"

That will stop the script at 8AM.

Posted

Uh... you couldn't figure this out?

If @Hour = 12 And @Min = 20 Then ExitoÝ÷ ÙIåzË2¢éjy¢vx ÝvÛIbé¢vx Ûazqèº

Now what happens if you start that script at 12:19? It will sleep for 5 minutes, and next time it checks it will be 12:24 and it will not stop, it will wait until next 12:20.

Is there a syntax for date?

I'm working on throwing some rudimentary protection onto a CD that we've got to distribute to remote end-users (volume licensed), and I'd like to have a date-checker. I've been looking all over for the date check but am only seeing @Hour, @Min, etc.

Posted

Is there a syntax for date?

I'm working on throwing some rudimentary protection onto a CD that we've got to distribute to remote end-users (volume licensed), and I'd like to have a date-checker. I've been looking all over for the date check but am only seeing @Hour, @Min, etc.

Go to the help file and click the index tab. Type "time" (without quotes) and the first thing in the list is the time and date macros.

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
×
×
  • Create New...