AutoHotkey Community

It is currently May 27th, 2012, 5:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CLosing scripts
PostPosted: October 14th, 2005, 8:57 am 
It would be useful to have a Close command similar to the Run command in order to close another script that is running, i.e Close, MyOldAhk.ahk. Also Suspend should be extended to do the same thing, i.e. Suspend, MyAhk.ahk etc.

Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2005, 9:23 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Those seem like good ideas, so I'll put them on the list.

As another option, sometimes it's better to combine scripts and then use the Hotkey command to selectively disable hotkeys you don't want active at certain times. If that isn't feasible, you can close other scripts with the following approach from the FAQ:
Code:
DetectHiddenWindows On  ; Allows a script's hidden main window to be detected.
SetTitleMatchMode 2  ; Avoids the need to specify the full path of the file below.
WinClose Script's File Name.ahk - AutoHotkey  ; Update this to reflect the script's name (case sensitive).

Also, the following shows how to pause or suspend other scripts:
http://www.autohotkey.com/forum/viewtopic.php?t=5226

Thanks for the ideas.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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