key press triggering something when program isn't in focus
i'm writing a bot, and since the task i'm making it do is going to move the mouse frequently, it would be difficult for the user to try and stop it by putting the program in focus and pressing a button.
so i think the next smartest thing is to stop it when a combination of keys are pressed. However, there's no guarantee that the program will be in focus.
I tried keylisteners and key bindings and niether work without focus.
i did google it, and it's been said that java is incapable because it's oriented around security. Is that true? if so, what do you recommend?
right now, i'm thinking windows listener(minimize to start, maximize to stop). Let me know if there's something better.