V
V
Vladimir Sae2014-05-20 10:40:03
Java
Vladimir Sae, 2014-05-20 10:40:03

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

4 answer(s)
T
trerums, 2014-05-20
@trerums

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"

S
svd71, 2014-05-20
@svd71

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.

A
Alexey Cheremisin, 2014-05-20
@leahch

Here is another solution using jni - biletnikov-dev.blogspot.ru/2009/09/global-hotkeys-...

V
Vladimir Sae, 2014-05-20
@Ssed

can you tell me more about these hooks or a link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question