Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OSbot won't type numbers! :O

Featured Replies

Hello, everyone! 
 

Suddenly the bot stopped inputting numbers, when chosing the amount of flax it should spin. I updated OSbot, Java and found a new Flax script; nothing has worked so far and I can't seem to find any troubleshooting on the subject. 

 

So my question to you is; how do I get the bot to start typing numbers again? 

Thanks! 

 

  • Author

Sorry, but I am not quite sure what to do with the linked thread. I see the best voted answer is a piece of code, but I have no idea in which file I would type this. The real problem is not really typing in general, as the bot easily logs in, but then fails to type anything. Do you have a way to dumb it down a notch? (: 

In advance; thank you very much! 

like mentioned, use

public void typeString(String s, boolean enter) throws InterruptedException {
   for (char c : s.toCharArray()) {
      bot.getKeyboard().typeKeyEvent(c, 0);
   }
   if (enter) {
      client.typeKey((char)KeyEvent.VK_ENTER, 0, 0, false);
   }
}

to use it, simply call

typeString("Message you want to type, 123456789, potato, meow", true). True/false if you want to press enter after done typing or not.

 

That should type near instsantly. If you want it more humanlike, put a sleep(50) underneath the typeKeyEvent() line.

Edited by Toph

  • Author

like mentioned, use

public void typeString(String s, boolean enter) throws InterruptedException {
   for (char c : s.toCharArray()) {
      bot.getKeyboard().typeKeyEvent(c, 0);
   }
   if (enter) {
      client.typeKey((char)KeyEvent.VK_ENTER, 0, 0, false);
   }
}

to use it, simply call

typeString("Message you want to type, 123456789, potato, meow", true). True/false if you want to press enter after done typing or not.

 

That should type near instsantly. If you want it more humanlike, put a sleep(50) underneath the typeKeyEvent() line.

Sorry, but I am starting to feel retarded. Where am I supposed to call the piece of code? Im not much of a programmer (obviously), and I know that I can't just type that on Runescape. The issue lies within either the profile or the OSbot; I need to know in exactly which file I have to put this piece of code, in order to fix the issue, please (: 

Thank you for being patient with me

Ooh. That's an issue with your script's writer. They need to fix it. I thought you were writing your own, sorry.

  • Author

It's alright. I found another and it turns out it worked. Looks like you can't generalize by just testing two different scripts; they might just not be up to date. 
Thank you very much for your help, though! 

Keep programm- and earthbending!

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.