sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59251
Re: [Question #662430]: Using mouseMove() in Games that capture the mouse
Question #662430 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/662430
itomcurran posted a new comment:
It seems like you are facing challenges with mouse control in SikuliX, particularly when dealing with certain game engines that capture the mouse. To achieve continuous mouse movement without concerns for positioning or screen size, you can use the mouseMoveOffset function in SikuliX. This function allows you to specify the offset from the current mouse position.
Here's an example of how you can modify your script:
while True:
mouseMoveOffset(100, 0)
This will move the mouse 100 pixels to the right from its current
position in a continuous loop.
However, based on your description, it seems like there may be some
issues with the mouse movement in the games you mentioned. SikuliX may
not be able to handle certain game engines' mouse capture behavior
effectively, leading to erratic movements.
To address this, you can try a few additional steps:
Adjust Mouse Speed:
Experiment with the mouse speed settings in your operating system. Sometimes, slowing down or speeding up the mouse movement can help with erratic behavior.
Run SikuliX as Administrator:
As mentioned in the error message, try running SikuliX as an administrator. Right-click on the SikuliX executable and select "Run as administrator." This might help bypass any restrictions on mouse movement imposed by the game or other applications.
Game-Specific Settings:
Check if the games you are automating have specific settings related to mouse input. Some games may have options to disable mouse capture or adjust sensitivity.
Game-specific SikuliX Configuration:
SikuliX provides configuration options that can be customized for specific applications. You can explore the SikuliX settings related to mouse control and adjust them based on the behavior you observe in your games.
Keep in mind that automating games like https://thecarromapk.com/bitaim-
mod-apk/, especially in a way that involves continuous mouse movement,
might be against the terms of service of the game and could lead to
unintended consequences. Always make sure you comply with the rules and
regulations of the games you are automating.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.