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.

Mouse click OSBot v2

Featured Replies

Hey,

 

how I can press the left mouse button in the new osbot v2 client with no mouse movement?

 

Thanks.

What do you mean? Just looking through the osbot2 api I Can see the following methods:

To move

boolean moveMouse(MouseDestination destination)
Moves the mouse to the specified destination.
boolean moveMouse(MouseDestination destination, boolean drag)
Moves the mouse to the specified destination.

 

 

To click (among many others)

boolean click(MouseDestination destination)

Moves the mouse to the specified destination and performs a left click on the destination.

boolean click(MouseDestination destination, boolean rightClick)

Moves the mouse to the specified destination and performs a left or a right click as specified on the destination.

Edited by KMJT

 

I found a way.

mouse.click(new RectangleDestination(mouse.getPosition().x, mouse.getPosition().y, 1, 1), false);

 without having to use the current mouse position you could have created a rectangle. RectangleDestination supports rectangle argument.

I hate how the mouse operates in osbot. Setting the speed down to 4 doesn't do anything. And if the change in x or y is less than 10 pixels, the mouse will teleport instead of slide to it's destination.

 

Seriously, just let me manually instruct it with my own code. I hate being limited by the api in this case. For instance, when I use object.Interact("Attack") you know what happens? The bot clicks the minimap, regardless of whether the object is visible or not, then teleports to right click the npc and initiates the attack. Every.single.time.

Guest
This topic is now closed to further replies.

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.