Soldtodie Posted April 5, 2014 Share Posted April 5, 2014 Hey, how I can press the left mouse button in the new osbot v2 client with no mouse movement? Thanks. Link to comment Share on other sites More sharing options...
KMJT Posted April 5, 2014 Share Posted April 5, 2014 (edited) 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 April 5, 2014 by KMJT Link to comment Share on other sites More sharing options...
Soldtodie Posted April 5, 2014 Author Share Posted April 5, 2014 I search a click method without moving. Link to comment Share on other sites More sharing options...
Acerd Posted April 5, 2014 Share Posted April 5, 2014 Do you mean that it immediately clicks when its at X? Link to comment Share on other sites More sharing options...
Soldtodie Posted April 5, 2014 Author Share Posted April 5, 2014 I found a way. mouse.click(new RectangleDestination(mouse.getPosition().x, mouse.getPosition().y, 1, 1), false); Link to comment Share on other sites More sharing options...
Joseph Posted April 5, 2014 Share Posted April 5, 2014 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. Link to comment Share on other sites More sharing options...
Karmik Posted April 7, 2014 Share Posted April 7, 2014 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 More sharing options...