I would like to create a program that looks if a process is opened in the system, and if so it sends a key combination (like CTRL+F1/2.. etc) to the machine (on Windows).
I'm more familiar with Java for programming, but I didn't find anything for the keylog problem. I found this: How to get a list of current open windows/process with Java? & this: check if some exe program is running on the windows to see open processes, but I don't know how to set the auto send key combination.
Thanks in advance!
Asked
Active
Viewed 55 times
0
-
Have you looked at the Robot classes? https://docs.oracle.com/javase/10/docs/api/java/awt/Robot.html – Roger Lindsjö Apr 07 '18 at 09:17
-
Wow I didn't see this class! So if I use keyPress to send auto key combination should work.. I'll test it rn! Thank you – Domenico Verde Apr 07 '18 at 09:20