roguehippo Posted October 19, 2016 Posted October 19, 2016 i was just wondering what the code would be for skipping a dialogue with the space bar instead of having to click on "click here to continue"
Muffins Posted October 19, 2016 Posted October 19, 2016 I believe it's coded to do it automatically? Could be wrong tho 1
roguehippo Posted October 19, 2016 Author Posted October 19, 2016 but would getDialogues().clickContinue(); use the mouse curser to do this, i already have this implemented and i wanted to make it faster by using space bar
Keven Posted October 19, 2016 Posted October 19, 2016 but would getDialogues().clickContinue(); use the mouse curser to do this, i already have this implemented and i wanted to make it faster by using space bar I am pretty sure it uses space to do it. 2
progamerz Posted October 19, 2016 Posted October 19, 2016 but would getDialogues().clickContinue(); use the mouse curser to do this, i already have this implemented and i wanted to make it faster by using space bar Randomly uses spacebar or mouse clicks.
Explv Posted October 19, 2016 Posted October 19, 2016 (edited) i was just wondering what the code would be for skipping a dialogue with the space bar instead of having to click on "click here to continue" // Using Keyboard class if (getDialogues().isPendingContinuation()) { getKeyboard().typeKey((char) VK_SPACE); } // Using ClientKeyEventHandler class (presses the key instantly) if (getDialogues().isPendingContinuation()) { getBot().getKeyEventHandler().generateBotKeyEvent(KEY_TYPED, System.currentTimeMillis(), 0, VK_UNDEFINED, (char) VK_SPACE); } Edited October 19, 2016 by Explv 2