I found out about the Robot class, and I wanted to implement some functionality found in AutoHotkey (a scripting language for windows, used for automation).
I was trying to program a getKeyState method (like the one in AHK) that would return true if the key is pressed, and false if released.
Is there anyway that I can check a key's state? I know I can monitor key events, but I'm not sure how to poll for whether a key is pressed or not.
Thanks for your help.