September 9, 201510 yr Simple question. I could probably find the answer myself but I hate looking when asking is easier. How do I use the esc key in my scripts? keyboard.typeKey() is what I assume I'm supposed to be using but what is the key code or char that I need to use for ESC. And for future reference, what is the code/char for other keys such as TAB, ENTER, SHIFT, CTRL? Shiny
September 9, 201510 yr http://www.asciitable.com/ Use the decimal number, so ESC would be 27 and tab is 9 oh and cast it as a char; getKeyboard().typeKey((char) 27); Edited September 9, 201510 yr by Chicken Wing
September 9, 201510 yr Author http://www.asciitable.com/ Use the decimal number, so ESC would be 27 and tab is 9 oh and cast it as a char; getKeyboard().typeKey((char) 27); KeyEvent.VK_ESCAPE Thanks guys! I really appreciate it
Create an account or sign in to comment