| View previous topic :: View next topic |
| Author |
Message |
Carcophan
Joined: 24 Dec 2008 Posts: 1308 Location: :noitacoL
|
Posted: Tue Mar 31, 2009 2:17 pm Post subject: (SOLVED - TY) Would this need a loop? |
|
|
I found something SKAN wrote, a very simple IfTime= script that I am going to try to use.
| Code: | #Persistent
SetTimer, CheckTime, 1000
Return
CheckTime:
If ( SubStr( A_Now,9,4 ) = "1330" )
{
Run, Calc.exe
ExitApp
}
Return |
My question is, as it is, if the script were just left to run 24/7, would it know that the next day has come to pass, and run again at 1:30pm?
Or would I just have to put this in a loop to check day?
No sense in coding a loop and stuff into it, if it will run as-is every day.
Last edited by Carcophan on Tue Mar 31, 2009 3:00 pm; edited 1 time in total |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Tue Mar 31, 2009 2:26 pm Post subject: |
|
|
The script checks every second if the time is 1330, so it should run every day...
HTH |
|
| Back to top |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 555
|
Posted: Tue Mar 31, 2009 2:29 pm Post subject: |
|
|
No need to put it in a loop. The CheckTime subroutine runs continuously every second. _________________
HTH...
|
|
| Back to top |
|
 |
Carcophan
Joined: 24 Dec 2008 Posts: 1308 Location: :noitacoL
|
Posted: Tue Mar 31, 2009 3:00 pm Post subject: |
|
|
Thanks much
Figured as much. I am still new, i have a habit of over codding somtimes (or so i'm told at least)
Didn't want to waste time putting this in a loop or something if it didnt need to be. |
|
| Back to top |
|
 |
|