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

Mini Screen to see your bots!

Featured Replies

Hi scripters. Here is code to put a mini screen the user can use to babysit their bot.

 

5162654393b0f64986d8046bc3871ba4.png

import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class GUI extends JFrame{

	private JPanel contentPane;
	BufferedImage capture;

	public GUI() {
		setResizable(false);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setSize(384, 255);
		contentPane = new JPanel();
		setContentPane(contentPane);
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
	}
	
	public void paint(Graphics g)
	{
		g.drawImage(capture,2,30,getContentPane().getWidth(),getContentPane().getHeight(),getContentPane());
	}

	public void setImage(BufferedImage image)
	{
		capture = image;
	}
	
}

How to Implement:

BufferedImage capture;
GUI gui;

	public int onLoop() throws InterruptedException  
	{
		capture =  client.getColorPicker().getBufferedImage();
		gui.setImage(capture);
		gui.repaint();

		return 200;
	}
	public void onStart(){ 
		gui = new GUI();
		gui.setVisible(true);
	}

Edited by 25sittin25m

that would be good for people who are vip and need to overview all of their bots, otherwise theres not really an essential point to it

  • 2 weeks later...

Nice man, I wish i knew how to use it :/

 

loookks guuuud!

Note that it's a resource waste and it won't draw paint information. It's funny to watch though

  • Author

instead of putting it on in the on loop wouldn't it be better for script performance to put it in the paint thread?

no because then it would be called 60 times per second not 5 times per second

  • 3 weeks later...

I believe the Robot class in java can make this easier.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.