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.

Mouse locations

Featured Replies

API Missing Features:

 

A feature that allows us to get information from the users mouse.

 

GetRealMouse.position()

GetRealMouse.rightClick()

 

I'd like to make a paint you can interact with so, thats why.

Edited by jelknab

  • Author

I cant test it right now but does the lcickmouse command only log user clicks or also script clicks?

I cant test it right now but does the lcickmouse command only log user clicks or also script clicks?

not sure what do u mean by log. Also if you are checking if the user have clicked on the paint use mouselistener

  • Developer

What you're looking for is: http://osbot.org/api/org/osbot/script/MouseListener.html

 

    @Override
    public void mouseClicked(MouseEvent e) {
    }
 
    @Override
    public void mousePressed(MouseEvent e) {
    }
 
    @Override
    public void mouseReleased(MouseEvent e) {
    }
 
    @Override
    public void mouseEntered(MouseEvent e) {
    }
 
    @Override
    public void mouseExited(MouseEvent e) {
    }
 
    @Override
    public void mouseDragged(MouseEvent e) {
    }
 
    @Override
    public void mouseMoved(MouseEvent e) {
    }
 
    @Override
    public boolean blockClicksOnClient(Point point) {
        return false;
    }

for right click 

public void mouseClicked(MouseEvent e) {
if(e.getButton() == MouseEvent.BUTTON3) {
// what ever you want to happen when the user press right click
    }
}
  • Author

Thanks a lot for all these usefull answers. This can be closed now.

Thanks a lot for all these usefull answers. This can be closed now.

 

Just a heads up. You can go to the top of your topic and click 'topic moderation'. You can then lock or hide your topic. :)

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.