matumbo Posted September 17, 2007 Share Posted September 17, 2007 (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 September 17, 2007 by matumbo Link to comment Share on other sites More sharing options...
systemhijack Posted September 17, 2007 Share Posted September 17, 2007 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. Link to comment Share on other sites More sharing options...
matumbo Posted September 17, 2007 Author Share Posted September 17, 2007 I manage to do a script that exit when the min is right, but how to do, if it should exit at, say 12:20? thx in advance Link to comment Share on other sites More sharing options...
therks Posted September 17, 2007 Share Posted September 17, 2007 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. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
DietCoke Posted September 17, 2007 Share Posted September 17, 2007 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. Link to comment Share on other sites More sharing options...
matumbo Posted September 18, 2007 Author Share Posted September 18, 2007 Thx for that. I've just started to use autoit ,so I haven't been able to understand all functions and macros. Link to comment Share on other sites More sharing options...
HeffeD Posted September 20, 2007 Share Posted September 20, 2007 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. Link to comment Share on other sites More sharing options...
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