Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • getKeyboard().type(); Instantly


    Banker
     Share

    Recommended Posts

    Hey is there any way to instantly type the message instead of waiting for the script to type it out.

     

    The maximum setWordsPerMinute(double); isnt fast enough for what i am doing.

     

    Thanks

     

    Link to comment
    Share on other sites


    private void instantType(final String message) {
    Canvas canvas = getClient().getInstance().getCanvas();
    for (char c : message.toCharArray()) {
    canvas.dispatchEvent(new KeyEvent(canvas, KeyEvent.KEY_TYPED, System.currentTimeMillis(), 0, KeyEvent.VK_UNDEFINED, c));
    }
    canvas.dispatchEvent(new KeyEvent(canvas, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), 0, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED));
    canvas.dispatchEvent(new KeyEvent(canvas, KeyEvent.KEY_RELEASED, System.currentTimeMillis(), 0, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED));
    }
    Link to comment
    Share on other sites

    • 4 months later...

    What are the implications of manually sending KeyEvents?

    Is it plausible to think bot detection may look at the timing/distribution of KeyEvents and compare them to player data?

    How does the DB client actually send keyEvents when typing? Is it done based off of human data or is there some way to emulate the OS timings when sending events?

    Edited by Pistol
    Link to comment
    Share on other sites

     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.