Jump to content

Mouse click OSBot v2


Soldtodie

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...