Jump to content

skip dialogues with spacebar


Recommended Posts

Posted (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 by Explv
  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...