Gabriel Ramuglia Posted May 4, 2020 Share Posted May 4, 2020 Anyone have an idea for playing back a short mouse macro in osbot? I'd like to record some "mouse jiggles" and "mouse strays" from real world playing, and then randomly play back one of them on appropriate occasions. Quote Link to comment Share on other sites More sharing options...
Camaro Posted May 4, 2020 Share Posted May 4, 2020 You could set up a mouse event listener that serializes mouse events and the time they were performed into json format. Then when you want to play them back, deserialize and generate the mouse events. https://osbot.org/api/org/osbot/rs07/input/mouse/BotMouseListener.html https://osbot.org/api/org/osbot/rs07/input/mouse/ClientMouseEventHandler.html Quote Link to comment Share on other sites More sharing options...
Gabriel Ramuglia Posted May 4, 2020 Author Share Posted May 4, 2020 Thanks! Quote Link to comment Share on other sites More sharing options...