Results 1 to 1 of 1
Thread: Check a key's state
- 11-26-2009, 06: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
Similar Threads
-
Save Scene State
By quddusaliquddus in forum Advanced JavaReplies: 1Last Post: 09-21-2009, 04:08 PM -
Invalid Cursor State, what it is and how to avoid it
By tim in forum JDBCReplies: 0Last Post: 07-02-2009, 10:42 AM -
Time constraints on object state
By Flipke in forum New To JavaReplies: 4Last Post: 04-11-2009, 06:12 PM -
Concurrent Hierarchical State Machine 4.3
By levent in forum Java SoftwareReplies: 0Last Post: 08-03-2007, 04:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks