Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

How to close a a script with a key without reassigning it



  • Please log in to reply
1 reply to this topic
RextTG
  • Members
  • 24 posts
  • Last active: Oct 15 2015 12:29 AM
  • Joined: 10 May 2015

Basically I have two scripts. I would like the one to close the other but since that can be challenging I simply want the second script to close itself. What I need is a script that can close itself when a key is pressed, however the first script already has the same key as a hotkey. So how can I make the key do something without reassigning it?

 

Hopefully this makes sense, its pretty simple I just don't know how to explain it.



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
✓  Best Answer
It's not challenging - How can a script close, pause, or suspend other script(s)?

~a::ExitApp will exit the current script when you press "a", without "reassigning" a. However, it mightn't work if the other script blocks "a".