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.

Would someone mind showing me an example of Mouse.click()?

Featured Replies

Sorry I continue to ask question but I was wondering if someone could show me an example of Mouse.Click()? Say if I want to LEFT click a certain X,Y Cord. would it not be

Mouse.Click(x,y, true)

?

 

 

 

Is it possible to use getArea()?

 

So it won't click in the exact same spot?

 

If someone wouldn't mind showing me a couple examples of those being used when I tried doing it myself I couldn't get it fully working right.

 

Thanks.

if (widget.hover()) {
getMouse().click(false);

I don't know why you exactly need it though, would make it easier to answer

Sorry I continue to ask question but I was wondering if someone could show me an example of Mouse.Click()? Say if I want to LEFT click a certain X,Y Cord. would it not be

Mouse.Click(x,y, true)

?

 

 

 

Is it possible to use getArea()?

 

So it won't click in the exact same spot?

 

If someone wouldn't mind showing me a couple examples of those being used when I tried doing it myself I couldn't get it fully working right.

 

Thanks.

 

I'm not sure because I haven't even learned how to use this method yet, but looking at the osbot api I found this http://osbot.org/api/org/osbot/rs07/input/mouse/MouseDestination.html

 

Might be what you're looking for?

It's likely that in your use cases you will want to be using interact() on whatever you are trying to click. However if you really need to click on a x,y coordinate you will need to use the move method to move the mouse to the correct position, followed by the click method.

Or use the click method with a Mouse Destination passed as a parameter.

 

 

Also, I don't understand why you are trying to click on an Area?

 

If you are trying to walk to an area / position you should use the walking methods

Edited by Explv

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.