Jump 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.

Trying to typeString throws and error

Featured Replies

Hello! So whenever I try to type a string to the keyboard I get this error.

getKeyboard().typeString("250", true);

 

[ERROR][Bot #1][07/31 02:25:53 PM]: Error in script executor!
java.lang.NullPointerException
    at core.Main.onLoop(Main.java:386)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(kl:223)
    at java.lang.Thread.run(Unknown Source)

 

I've tried keyboard.typeString() and getKeyboard().typeString() but nothing seems to be working. Anyone got any ideas?

  • Author
3 minutes ago, Explv said:

It means you have a NullPointerException on line 386. Nothing to do with typeString()

How do I avoid it then? With just a try/catch?

  • Author
4 hours ago, Khaleesi said:

There is a nullpointer exception on something else ... so you must null check?
Show more of your code? :)

Core.Main line 386?

Managed to figure it out. Actually just moved to a different way. This was part of my GE script and sellItem wasnt working then I realized Im getting the same error and realized I had a capital on an Item name. Thanks for you guy's help!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.