AutoHotkey Community

It is currently May 26th, 2012, 10:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Reload with parameters
PostPosted: August 8th, 2005, 10:41 am 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Hi,

well, there are workarounds with temporary files, but what about allowing Reload to give some commandline-parameters to tell the script how it was reloaded?

Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2005, 7:39 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
You probably already know about the OnExit command, by which you can check the value of A_ExitReason to find out why a script is being asked to terminate (Reload, #SingleInstance, etc.)

If you want to have complete control over how Reload works -- including the passing of custom parameters -- have the script execute itself with AutoHotkey.exe and pass some extra parameters. You can also pass the parameter /r or /restart to simulate a Reload (as documented).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2005, 9:41 pm 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Thanks Chris, checking if a script was reloaded instead of beeing normally started was my aim.

Tekl


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group