Thinkingofyou Posted August 15, 2014 Posted August 15, 2014 So I'm looking for a way to have the bot use keyboard shortcuts to open tabs, like magic (F6) and the inventory (ESC). Is there a way in the API to do that?
Botre Posted August 15, 2014 Posted August 15, 2014 http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html
FrostBug Posted August 15, 2014 Posted August 15, 2014 (edited) have you tried getKeyboard().typeKey(char key) or getKeyboard().pressKey/releaseKey ? Edited August 15, 2014 by FrostBug
Thinkingofyou Posted August 15, 2014 Author Posted August 15, 2014 have you tried getKeyboard().typeKey(char key) or getKeyboard().pressKey/releaseKey ? ya but im not sure how to input the variable to press F6 and ESC.
Botre Posted August 15, 2014 Posted August 15, 2014 ya but im not sure how to input the variable to press F6 and ESC. VK_F6 VK_ESCAPE