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.

Toggle script logic on and off?

Featured Replies

Hey all, first post here.  Been digging around the API docs for a while to solve a (hopefully) simple problem with no luck, so I thought I'd get a second opinion.

 

I'm writing myself a basic drop-all script for low-level fletching, and I'm trying to find ways to toggle the dropping logic on and off.  My idea is to be able to leave the script running and just use some sort of a button or key combination to send a signal to the script that would cause it to start dropping.  The idea is to avoid the clicks of re-running the script every time I want to drop all.

 

Is there a way to add a key listener to the script?  I can easily create a class implementing  java.awt.event.KeyListener  and handle key events to listen for  Ctrl+Shift+Backslash,  for instance, but I can't find a way to tell the script to use that listener.

 

I'm sure what I'm trying to do is simple, but I couldn't find anything in the scripting tutorial or help sections.  I should add that I'm familiar with Java and coding in general, but I'm brand new to the OSBot API, save for what I've read and tinkered with for the past few hours.  TIA!

  • Author

getBot().getCanvas().addKeyListener(this);

 

I was literally about to do the same thing with my script tongue.png (adding a key to show more paint info)

 

Thanks, Czar!  Works like a dream.

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.