Shortcut executed or in-background running Java application
Hi All,
I programmed myself a simple Java application with some Swing components. Now, I am able to run this app by double-clicking JAR file, or executing it in the console. What I'd like to do though is to be able to run the application as quickly as possible, that means with a shortcut I could use inside of any other program. I am using Windows 7, and the shortcut ability apparently doesn't work with files (neither .bats nor .jars). I have some apps that are running only in the system tray and can actually listen to my keyboard input all the time (and use shortcuts like win button + other key). That would be the best way for me to do it, but is it even possible with Java? If it was, I would just show my application's window upon pressing a shortcut.
I will welcome any suggestions as to how to solve this problem.
Thank you, xixixao
Re: Shortcut executed or in-background running Java application
As per my knowledge : you can also run your application in tray and can invoke your application by simply clicking on it or can invoke popup menu to ask what operation you want to perform.
How to use System tray ?
and if you want to invoke application using shortcut key , i think you need to Hook Keyboard for that.
Re: Shortcut executed or in-background running Java application
Quote:
Originally Posted by
DanBrown
...
and if you want to invoke application using shortcut key , i think you need to Hook Keyboard for that.
Thank you for that great advice, through a little searching I found this perfect solution for Java and windows, works like magic:
jintellitype - JIntellitype is a Java API for interacting with Microsoft Intellitype commands as well as registering for Global Hotkeys in your Java application. - Google Project Hosting