Answer the question
In order to leave comments, you need to log in
How to manage win with Java tools?
Cheerful day. I had such a question as a novice Java programmer, is it possible to manage Windows using Java tools (maybe I wrote it wrong, maybe it’s like working with win), namely, I’m interested, there is a program in java, and I need to when the program is not in focus, the keyboard shortcut was controlled.
For example, I launch my program and launch the browser, while working in the browser, I press, for example, ctrl alt q, an action took place in my program.
Thank you!
Answer the question
In order to leave comments, you need to log in
I think you need to work from java with winapi, namely with hooks. I'm not sure, though, that this is relevant now, because I was doing this as a child in Delphi. Google for "java winapi key hooks"
www.blog.kslemb.com/doku.php/en/projects/globx/java_hid
This is a library for using Native Libraries inside Java classes. If the skill is enough to figure it out and do it by analogy, then profit awaits.
Here is another solution using jni - biletnikov-dev.blogspot.ru/2009/09/global-hotkeys-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question