Juggles Posted April 20, 2017 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?
Polymorphism Posted April 20, 2017 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
The Undefeated Posted April 20, 2017 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.