Make a program detect keypresses and keep running without it being the active window.

edited November 2014 in How To...

I think the title says it all, I basically want to manipulate a gif file depending on what key I press (say key1 or key2).

But the issue is I don't want to have that window active when doing it, I want it to actually run all the time, no matter what window I currently have selected.

Tagged:

Answers

  • Answer ✓

    This supposes to have a global system hook, something Java cannot do by itself.

    This question has been asked a few times in this forum, I suggest to search (from the main site). You need a Java library that does such hook, it has been mentioned in the past.

  • I know about jnative, thing is I wouldn't know how to import it for processing (which I think isn't possible without recoding it entirely), or the other way around, importing processing functions into java so that I'm able to use jnativelib.

Sign In or Register to comment.