Sign in to follow this  
Followers 0
joeyone

terminate and restart

3 posts in this topic

i want to make a hotkey witch function is to terminate and restart the script itself

is this possible in a easy way?

i have looked in the help file but havent found anything that seems to do this

Share this post


Link to post
Share on other sites



Have a line in the script to be run and checks if it does, if so terminate it, and continue the script. Easy enough to go HotKeySet () and then run the program again. The rest of the script will take care of itself... :) It's also probably easier to close the process using a EnvVar containing the PID of the current process... :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Have a line in the script to be run and checks if it does, if so terminate it, and continue the script. Easy enough to go HotKeySet () and then run the program again. The rest of the script will take care of itself... :) It's also probably easier to close the process using a EnvVar containing the PID of the current process... :)

I think i understand, i will be very glad if you can show me with some code how this should be done if you have some time =)

thank you very much

Edited by joeyone

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0