windows - How can I call a Java application on background with keyboard keys? -


I'm actually working on a screenshot saver on Windows, and I want to call a method on a Java application When I press a combination of keys to save the screen.

The Java application is not an "active" window, so how can I call a method? Whether the main window has been reduced or running on the background.

For Windows you are searching one in your keyboard. Note that hooking is highly relevant to the OS and your applications may not be portable between different versions / editions of the OS yet, you can use Jeana as shown it here or, using a library of third party .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -