Any way to exit a specific script with a script?

Recommended Posts

Ices 0

Ices 0

I'm looking for a way to close a script when a hotkey is pressed in another script. The only way I know how is with processclose, but if my scripts aren't compiled, I can't use processclose. Is there any way to set a unique ID to a script when starting it, then using that ID to close it with another script? Any help would be appreciated.

Thanks in Advance,

Ices

Share this post

Link to post

Share on other sites

Juvigy 31

Juvigy 31

You can make something like a loop in the first script to check .ini file for a specific value every 5 secs for example and if the value is matched to exit the first script. And in the second script youcan set that value in the ini file whenever you want to exit the first script.