View Single Post
Old Mar 5th, 2008, 9:05 PM   #3
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,034
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: shift key escape sequence

Have you checked Sun's Java API documentation? You can do what you want by using the Robot class to simulate input. It does come with some caveats, but it should get you started. Note that you'll need to simulate press and release events. For the virtual key codes used in Java, see the KeyEvent class.

If all you want to do is map lowercase letters to their uppercase counterparts, you can use a lookup table, switch() block, or the Java API methods to accomplish this (things like String.toUpperCase() and similar methods).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote