AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

(SOLVED - TY) Would this need a loop?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Carcophan



Joined: 24 Dec 2008
Posts: 1308
Location: :noitacoL

PostPosted: Tue Mar 31, 2009 2:17 pm    Post subject: (SOLVED - TY) Would this need a loop? Reply with quote

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
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Tue Mar 31, 2009 2:26 pm    Post subject: Reply with quote

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

PostPosted: Tue Mar 31, 2009 2:29 pm    Post subject: Reply with quote

No need to put it in a loop. The CheckTime subroutine runs continuously every second.
_________________

HTH...
Back to top
View user's profile Send private message
Carcophan



Joined: 24 Dec 2008
Posts: 1308
Location: :noitacoL

PostPosted: Tue Mar 31, 2009 3:00 pm    Post subject: Reply with quote

Thanks much Smile

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group