Thinkingofyou Posted August 15, 2014 Share 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? Link to comment Share on other sites More sharing options...
Botre Posted August 15, 2014 Share Posted August 15, 2014 http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html Link to comment Share on other sites More sharing options...
FrostBug Posted August 15, 2014 Share Posted August 15, 2014 (edited) have you tried getKeyboard().typeKey(char key) or getKeyboard().pressKey/releaseKey ? Edited August 15, 2014 by FrostBug Link to comment Share on other sites More sharing options...
Thinkingofyou Posted August 15, 2014 Author Share 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. Link to comment Share on other sites More sharing options...
Botre Posted August 15, 2014 Share Posted August 15, 2014 ya but im not sure how to input the variable to press F6 and ESC. VK_F6 VK_ESCAPE Link to comment Share on other sites More sharing options...