April 20, 20178 yr 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?
April 20, 20178 yr 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
April 20, 20178 yr 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.
Create an account or sign in to comment