Hello
I am developing a very small personal project to help me tally up some work related data (db problems solved, time spent debugging a particular piece of code, etc). Anyway, i need to catch certain combination of keystrokes (mainly ctrl+ a numpad key) and increase the counter for the corresponding task, or start/stop the timer.
I know how to grab keystrokes inside my own applications and recognize them, but have no idea how to do that from outside the application in focus.
So my question is 2-fold:
1) How to grab keystrokes when the application is not the one on focus
2) Is there a way to have the event listener only being fired when the key combinations i'm interested are pressed?
A google search gave me the answer in a restrict number of sites saying that it is not possible in
java, but i would like to know it from a more trustworthy site like this. If i can't do it in java guess i'll have to do in c#...
Thank you in advance for the help