Results 1 to 4 of 4
Thread: robot class keyevent question
- 08-20-2011, 08:53 AM #1
Member
- Join Date
- Jul 2011
- Posts
- 15
- Rep Power
- 0
robot class keyevent question
I need my program to press the "-" (dash) key. Also, I need to be able to use the "_" (underscore) key. The only thing I could find for the dash key was VK_SUBTRACT. When I try VK_UNDERSCORE, eclipse comes up with the error IllegalArgumentException. When I try:
VK_SHIFT
VK_VKSUBTRACT
VK_SHIFT
It still won't give me an underscore.
Can someone please help me get a dash and an underscore into my program?!?!
Thanks!
- 08-20-2011, 09:35 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Try press: VK_SHIFT, press: VK_MINUS release: VK_MINUS, release: VK_SHIFT
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 08-20-2011, 09:46 AM #3
Member
- Join Date
- Jul 2011
- Posts
- 15
- Rep Power
- 0
Jos, you are the man!!!!
That was killing me! Can I pick your brain one more time? The last key to complete my program are these symbols "`" and "~". I dont know what they are called and I cant find anything on google about it. If you know what these two are, you will be my savior!
Thanks
Dan
- 08-20-2011, 11:23 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Help with Robot class please
By davetheant in forum New To JavaReplies: 2Last Post: 01-04-2011, 12:13 PM -
Robot class
By coltragon in forum New To JavaReplies: 6Last Post: 07-12-2010, 05:54 PM -
Help with Robot Class
By protocos in forum EclipseReplies: 11Last Post: 10-05-2009, 08:15 PM -
Robot Class
By Jessie Madman in forum New To JavaReplies: 3Last Post: 05-15-2008, 04:13 AM -
Robot Class
By jfredrickson in forum New To JavaReplies: 2Last Post: 07-11-2007, 09:00 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks