joeyone Posted February 7, 2008 Share Posted February 7, 2008 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 Link to comment Share on other sites More sharing options...
BrettF Posted February 7, 2008 Share Posted February 7, 2008 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... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
joeyone Posted February 7, 2008 Author Share Posted February 7, 2008 (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 February 7, 2008 by joeyone Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now