AutoHotkey Community

It is currently May 27th, 2012, 12:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: June 7th, 2011, 1:24 pm 
Offline

Joined: June 1st, 2011, 1:30 pm
Posts: 17
Hi,

I'm using this editor for autohotkey, and I like it a lot. As it allows to launch the script from the GUI. Is this the only one which allows this?

But when I launch the script from GUI, if the script is already launched, it asks me if it should replace it by the new instance.

Is there a way to discard this confirmation and always replace the old running script by the new one?

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2011, 2:51 pm 
Offline

Joined: July 14th, 2004, 6:21 am
Posts: 20
That message is an autohotkey action, and not from the editor.

I don't know if there is an option to automatically replace the running script if it is started twice.

_________________
SJKeegs


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2011, 3:00 pm 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
Code:
#singleinstance, Force


Put that at the top of your script, that will force your script to only run in one instance - automatically replacing the old one.

_________________
~sumon Appifyer AHK Nova halted Recommended: AHK_L (Why?)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2011, 1:33 pm 
Offline

Joined: June 1st, 2011, 1:30 pm
Posts: 17
Thanks a lot ;)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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