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
  • Keyboard.holdKey() is broken!


    testttmewmc

    Recommended Posts

    I'm trying to just get my bot to hold down the "1" key on the keyboard:

    Keyboard.holdKey('1', () -> false, 8000);

    I've also tried:

    Keyboard.holdKey('1', () -> true, 8000);

    in case I wasn't understanding the API correctly. Neither hold down "1". If I do ()->true then "1" is pressed ONCE at the end of the timeout length. Am I not understanding this correctly or is this broken?

    Link to comment
    Share on other sites

    On 7/18/2022 at 6:58 PM, Pandemic said:

    Fixed that, will be in the next client build :)

    Oh ty! will this include holdspace? I noticed Keyboard.holdSpace was doing the same thing when I was making a tutorial island script

    Link to comment
    Share on other sites

    1 hour ago, Tier3 said:

    Oh ty! will this include holdspace? I noticed Keyboard.holdSpace was doing the same thing when I was making a tutorial island script

    The build in mention is already out (3.13.0) , you can read the full changes in the thread.

    But no, it doesn't seem like it was included.

     

    Link to comment
    Share on other sites

    2 hours ago, Tier3 said:

    Oh ty! will this include holdspace? I noticed Keyboard.holdSpace was doing the same thing when I was making a tutorial island script

    I believe holdSpace used holdKey internally so it should also be fixed now, let me know if it isn't though :)

    Link to comment
    Share on other sites

    51 minutes ago, Pandemic said:

    I believe holdSpace used holdKey internally so it should also be fixed now, let me know if it isn't though :)

    I had a feeling it did, it's been a while since I tried, should come in handy for some lengthy dialogues :) thanks!

    Link to comment
    Share on other sites

    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
    ×
    ×
    • 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.