stev379 Posted April 25, 2005 Posted April 25, 2005 I have an application that was designed in DOS and later updated/converted so it can run in XP. Usually it is closed by pressing the ESC key. I have an XP machine that won't close the app in this manner. I have to CTRL+ALT+DEL > tsk Mgr or hit the windows key and close group. How can the ESC key be set as a hot key to close this application? As is the script stops running when I press the ESC key, but not the app that it started. HotKeySet("{ESC}", "Terminate") Run(@DesktopDir & "\Appfolder\App.exe") While 1 Sleep(100) WEnd Func Terminate() Exit 0 EndFunc
buzz44 Posted April 25, 2005 Posted April 25, 2005 (edited) Func Terminate() ProcessClose ("App.exe") Exit EndFunc Edited April 25, 2005 by Burrup qq
stev379 Posted April 25, 2005 Author Posted April 25, 2005 Thanks! Forgot about process close and kept looking for "exit", "quit" or "force quit" and the like in the help file. Thanks again!
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