Results 1 to 1 of 1
Thread: Check a key's state
- 11-26-2009, 07:09 PM #1
Check a key's state
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.CodesAway - codesaway.info
writing tools that make writing code a little easier
- By quddusaliquddus in forum Advanced JavaReplies: 1Last Post: 09-21-2009, 05:08 PM
- By tim in forum JDBCReplies: 0Last Post: 07-02-2009, 11:42 AM
- By Flipke in forum New To JavaReplies: 4Last Post: 04-11-2009, 07:12 PM
- By levent in forum Java SoftwareReplies: 0Last Post: 08-03-2007, 05:44 PM