0

I made a console application on java. I want to stop it whenever and wherever I want using hot keys (ctrl+T for example). How can I implement such action? I want to terminate it even if another window is opened without returning back to my app window. If I can't do it using java, then what shell script should I use? I am on Windows.

  • 1
    This may help [how to run this key listener in background in java](https://stackoverflow.com/questions/44502528/how-to-run-this-key-listener-in-background-in-java/44502826) – the Hutt Apr 02 '21 at 12:32
  • It's a console app, but I use awt (java.awt.Robot) – IzhanVarsky Apr 02 '21 at 12:59

0 Answers0