Juggles Posted April 20, 2017 Share Posted April 20, 2017 Point newPos = getMouse().getPosition(); mouse.click(newPos,false); I am trying to get the current mouse position and then click it. I tried doing it like this but it's not working. Any ideas? Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted April 20, 2017 Share Posted April 20, 2017 There are many ways built into the api to do this. https://osbot.org/api/org/osbot/rs07/api/Mouse.html#click-boolean- Also, you'll probably wanna be passing in a PointDestination https://osbot.org/api/org/osbot/rs07/input/mouse/PointDestination.html Quote Link to comment Share on other sites More sharing options...
Team Cape Posted April 20, 2017 Share Posted April 20, 2017 mouse.click(false); 1 Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted April 20, 2017 Share Posted April 20, 2017 36 minutes ago, Imateamcape said: mouse.click(false); This will work. I don't get it why your code shouldn't work. Haven't tested it out myself but I use something close to yours. Quote Link to comment Share on other sites More sharing options...