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 

IS there a way to Reload script in, program

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





PostPosted: Thu Nov 09, 2006 10:16 pm    Post subject: IS there a way to Reload script in, program Reply with quote

just wondering is there a way to reload a script durning a program like every 4 seconds , or so ? idk , just wondering = )
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Thu Nov 09, 2006 10:19 pm    Post subject: Reply with quote

Have you tried SetTimer and Reload?
_________________

Back to top
View user's profile Send private message Visit poster's website
Reload
Guest





PostPosted: Thu Nov 09, 2006 10:26 pm    Post subject: Reply with quote

How do i do that? , thanks for replying = )
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Thu Nov 09, 2006 10:44 pm    Post subject: Reply with quote

Explanation and examples for every command can be found in the manual.

SetTimer: http://www.autohotkey.com/docs/commands/SetTimer.htm
Reload: http://www.autohotkey.com/docs/commands/Reload.htm

e.g.
Code:
SetTimer, DoReload, 4000

; ...

DoReload:
Reload
Return

_________________

Back to top
View user's profile Send private message Visit poster's website
quicktest



Joined: 30 Jul 2004
Posts: 42

PostPosted: Thu Nov 09, 2006 10:49 pm    Post subject: Reply with quote

Just want to chime in with my 0.02 cent idea; I use #SingleInstance Force to achieve a similar goal, so I can relaunch my script after editing without manually exiting the previous one.
Back to top
View user's profile Send private message
Reload
Guest





PostPosted: Thu Nov 09, 2006 10:52 pm    Post subject: Reply with quote

If you dont , mind , could u make one that makes it reload every 3 seconds ? , if not , its ok


nothing a good Read wont cure
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Thu Nov 09, 2006 10:59 pm    Post subject: Reply with quote

The SetTimer interval is measured in milliseconds, so just replace the 4000 with 3000.
_________________

Back to top
View user's profile Send private message Visit poster's website
Reload
Guest





PostPosted: Thu Nov 09, 2006 11:22 pm    Post subject: Reply with quote

How do i add it to a Exsiting macro, do i like just put the whole thing before the , original code , or under the original??
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Thu Nov 09, 2006 11:41 pm    Post subject: Reply with quote

The SetTimer command has to be in the Auto-Execute section. The label and Reload can go anywhere else.
_________________

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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