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 

set timer

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





PostPosted: Tue Mar 09, 2010 5:54 am    Post subject: set timer Reply with quote

Hi all..
I am a newbie in AHK.
I have designed a script but i only need this script to run at certain time. Like for example every 15mins, i need to run the script once...

Is there a way for me to do it? Really appreciate the help.
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Tue Mar 09, 2010 6:50 am    Post subject: Reply with quote

Code:
#Persistent ; prevents the script from exiting when it reaches the first 'Return'
SetTimer, MySubroutine, 900000 ; 900,000 milliseconds is 15 minutes
MySubroutine: ; this is a label
   Tooltip, This tooltip will display every 15 minutes
   Sleep 10000 ; 10 seconds
   Tooltip ; close the tooltip
Return ; ends the subroutine

SetTimer
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
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