Rudolph123 Posted April 16 Share Posted April 16 New to using the API and looking into different options to control the script. I notice I can use the methods provided by the API to complete nearly everything when interacting with the game. When using these methods I do not see the mouse moving at all which makes me think its either invisible while performing the methods or injects the events into the queue. When using other scripts I can visibly see the mouse which I can only assume they are either using the mouse functionality from the API or a custom one. From experience I have always used a custom mouse algorithm that is trained on lots of human data for mouse control. However this fancy API has lots of control over the game. Does anyone have any opinions or information from experience ban rates using custom/API mouse movements vs interact methods? (i'm new to osbot scripting and have been reading the API however it is a lot of information... p.s. thank you for even having documentation in the first place, it's a game changer.) Quote Link to comment Share on other sites More sharing options...
Bobbey Posted April 18 Share Posted April 18 The mouse is not visible by default. You can either render it or enable the mouse position option in the debug options. You can create a mouse move profile and set it like so: MouseMoveProfile profile = new MouseMoveProfile(); profile.setNoise(); profile.setDeviation(); profile.setSpeedBaseTime(); profile.setFlowSpeedModifier(); profile.setMinOvershootTime(); getBot().setMouseMoveProfile(profile); You can move the mouse without using the mouse handler of osbot as described here: https://osbot.org/api/org/osbot/rs07/input/mouse/ClientMouseEventHandler.html#generateBotMouseEvent-int-long-int-int-int-int-boolean-int-int-int-boolean- Quote Link to comment Share on other sites More sharing options...
yfoo Posted April 19 Share Posted April 19 Its invisible, you need to draw it on the screen in onPaint or enable Mouse Position in debug/settings menu (Right side of osbot window, 3 gears icon). Quote Link to comment Share on other sites More sharing options...
Rudolph123 Posted April 20 Author Share Posted April 20 (edited) On 4/18/2024 at 6:17 AM, Bobbey said: The mouse is not visible by default. You can either render it or enable the mouse position option in the debug options. You can create a mouse move profile and set it like so: MouseMoveProfile profile = new MouseMoveProfile(); profile.setNoise(); profile.setDeviation(); profile.setSpeedBaseTime(); profile.setFlowSpeedModifier(); profile.setMinOvershootTime(); getBot().setMouseMoveProfile(profile); You can move the mouse without using the mouse handler of osbot as described here: https://osbot.org/api/org/osbot/rs07/input/mouse/ClientMouseEventHandler.html#generateBotMouseEvent-int-long-int-int-int-int-boolean-int-int-int-boolean- Hindsight with an explanation it seems obvious, thanks for these resources. On 4/19/2024 at 3:01 AM, yfoo said: Its invisible, you need to draw it on the screen in onPaint or enable Mouse Position in debug/settings menu (Right side of osbot window, 3 gears icon). Makes sense, thank you. Edited April 20 by Rudolph123 Brain is mushy Quote Link to comment Share on other sites More sharing options...