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.

Override client settings for random/user input handling

Featured Replies

Does anyone know how to do this? There are some get methods in the client class, but I don't see any way to modify their values.

 

Edit:

 

Specifically, I want to be able to force the client to ignore user inputs and to force random dismissal on.

Edited by Solzhenitsyn

You will not be able to modify any settings set by the botter, they have the higher privileges.

 

Edit: Example: breaks, human input, f2p/p2p world, etc. 

  • Author

thats really, really sketchy

 

It's because I'm using a mouse listener to to add user input to the event queue so that they will not interrupt the script logic.

 

I wish you wouldn't assume the worst about my intentions, especially considering I typically make scripts for my own personal use.

Edited by Solzhenitsyn

It's because I'm using a mouse listener to to add user input to the event queue so that they will not interrupt the script logic.

 

I wish you wouldn't assume the worst about my intentions, especially considering I typically make scripts for my own personal use.

I would like to see an answer to this as well. The bots over obfuscation really limits script flexibility for fully automated farms. 

I don't see any reason why it's hindering you.

 

Break handler in the way? Make your own

Login Handler override? It's possible

Dismiss randoms? Enable it once, quit client, restart and it's on until the next time you disable it, or write your own

Capture user input? Paint a canvas sized element that is transparrent and captures clicks

...

 

 

 

Edited by Abuse

From what I understand you want to capture if a user clicks somewhere, and add it to the event queue to the bot will execute that sometime in the future. Capturing the user input is actually easier than you'd think:

private BotMouseListener listener = new BotMouseListener() {
    // Required funcs
    @ Override
    public void mouseReleased(MouseEvent e) {}
    @ Override
    public void mousePressed(MouseEvent e) {}
    @ Override
    public void mouseExited(MouseEvent e) {}
    @ Override
    public void mouseEntered(MouseEvent e) {}
    @ Override
    public void mouseClicked(MouseEvent e) {
        if (e.getPoint().equals(getMouse().getPosition()))
            return; // The bot generated this click, ignore it
        
        if (getClient().isHumanInputEnabled())
           return; // Ignore incase they have human input enabled
        
        // Queue human interaction or w/e
    }
}
 
// Then add these lines to script startup
getBot().getCanvas().addMouseListener(listener);

// Then add these lines to script stop
getBot().getCanvas().removeMouseListener(listener);
 

From here you can make a queue that your script can process when it is ready.

 

Edit: Also in the future, its usually easier to explain your end-game (in this case queuing user actions to be performed by the bot). Tends to get more possible solutions quicker.

Edit2: OSBot don't like my "@ Override" (references some banned dude lol), so had to add spaces. Heres a pastebin: http://pastebin.com/kVzsuAba

Edited by Lemons

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.