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.

setHumanInputEnabled alternative?

Featured Replies

A few changes were made to prevent Scripters from touching things that would affect either the entire client or other scripts. Most notably, GameConstants has been hidden and setHumanInputEnabled has had the functionality stripped. For the human input, there are a lot of other ways to achieve the same result. 

Which alternatives exactly?

 

 

Question: how can I programatically enable / disable human input without the setHumanInputEnabled(bool) method.

 

Am I really going to have to write my own flag for this that might end up contradicting the "button" one and cause endless confusion?

Edited by Botre

Detect user clicks on the canvas, send raycasts in runescape space and simulate it as bot input.

  • Author

Detect user clicks on the canvas, send raycasts in runescape space and simulate it as bot input.

 

My question is: how can I programatically enable / disable human input without the setHumanInputEnabled(bool) method.

My question is: how can I programatically enable / disable human input without the setHumanInputEnabled(bool) method.

Not possible in my opinion, but you can simulate the effect of human input as described above.

  • Author

Not possible in my opinion, but you can simulate the effect of human input as described above.

 

Yeah nvm, I don't think you get my question :p

Yeah nvm, I don't think you get my question :p

"Not possible" doesn't sound like an off-topic answer to me.

  • Author

Why do you still need that feature?

 

if(state == SELECT_ITEM_WITH_MOUSE) setMouseInputEnabled(true);
 
vs.
 
if(state == SELECT_ITEM_WITH_MOUSE) message("Enable mouse input yourself to select item")

Edited by Botre

 

if(state == SELECT_ITEM_WITH_MOUSE) setMouseInputEnabled(true);
 
vs.
 
if(state == SELECT_ITEM_WITH_MOUSE) message("Enable mouse input yourself to select item")

 

 

I don't think there is a way of enabling mouse input any more. You could always try and do some hacky stuff like this:

getBot().getCanvas().addMouseListener(new MouseAdapter() {
    @Override
    public void mouseClicked(MouseEvent e) {
        super.mouseClicked(e);
        getBot().getMouseEventHandler().generateBotMouseEvent(
            e.getID(),
            e.getWhen(),
            e.getModifiers(),
            e.getX(),
            e.getY(),
            e.getClickCount(),
            false,
            e.getButton(),
            true
        );
    }
});

Edited by Explv

  • Author

 

I don't think there is a way of enabling mouse input any more. You could always try and do some hacky stuff like this:

getBot().getCanvas().addMouseListener(new MouseAdapter() {
    @Override
    public void mouseClicked(MouseEvent e) {
        super.mouseClicked(e);
        getBot().getMouseEventHandler().generateBotMouseEvent(
            e.getID(),
            e.getWhen(),
            e.getModifiers(),
            e.getX(),
            e.getY(),
            e.getClickCount(),
            false,
            e.getButton(),
            true
        );
    }
});

 

240x196px-LL-e66ddef6_reverse-1253886001

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.