Jump to content

Trying to typeString throws and error


Recommended Posts

Posted

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?

Posted
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

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