I don’t know if this is possible, but I’m making a program to save certain keyboard or mouse actions you have done on your computer and reproduce them for you, helping out with a lot of things like mundane multimedia tasks and whatnot. I’ve got the reproduction part and right now I have a fullscreen undecorated semi-transparent JFrame pop up so that you can simulate the mouse and keyboard movement you are doing, but it obviously isn’t recording the actual ones and so multistep recordings that require the program you are working in to change (like pressing a button and having a window pop up) clearly won’t work, unless you guess where things are going to happen.
So, my question is – is there any way to record mouse and keyboard input from anywhere on the computer, even while some Swing component does not have focus? Can I trick a Swing component to always thinking it has focus, and therefore it will always record everything anyway? Could I override some hasFocus() method or something?
Thanks once again, guys.
