I'm making an app that, when executed will continue to do something in an infinite loop, forever (or until the process is manually stopped).
My goal is to create a process with a unique name which will run this application (right now java uses javaw.exe as the same name for all processes it auto creates and starts), so that I can write another application that will cleanly close it and only it.
FYI, the application uses a windows shortcut hotkey to execute & so will the application which closes it...
So, essentially, I would start it with a hotkey, then hotkey another application which will stop the process at a later time.
Unconventional, I know, but I'm wondering if its doable. What would also solve the problem is a way to make the program listen for a hotkey, globally (no matter what applications are in focus), but this im betting would have to deal directly with the windows kernel unless there's a usable API in Java to create global shortcut keys which are always being listened for.