SetDefaultMouseSpeed problem
-
- Posts: 1
- Joined: 13 Aug 2022, 10:41
SetDefaultMouseSpeed problem
SetDefaultMouseSpeed 1 is too fast for what im using it for, SetDefaultMouseSpeed 2 is too slow and I've tried 1.5, 1,5 etc but it doesn't work. Does anyone know of any solution to this problem? (MouseSpeed is in relation to mouse movement)
Re: SetDefaultMouseSpeed problem
You can break the path into segments, such as two segments at speed 1, which will be slower than one segment of speed 1 since the actual speed isn’t linear throughout (it will slow down twice).
Or break it into a a lot of segments at speed 0, and it will have some speed less than instantaneous because of AHK’s execution speed. The resulting speed can be adjusted by how many segments you break it into (preferred over Sleep statements in between so the movement is smoother).
If you like the way the MouseMove command slows down as it approaches the destination, you can mimic that by doing the same thing it does, which is to divide the remaining distance into segments after moving through first segment of each iteration.
Or break it into a a lot of segments at speed 0, and it will have some speed less than instantaneous because of AHK’s execution speed. The resulting speed can be adjusted by how many segments you break it into (preferred over Sleep statements in between so the movement is smoother).
If you like the way the MouseMove command slows down as it approaches the destination, you can mimic that by doing the same thing it does, which is to divide the remaining distance into segments after moving through first segment of each iteration.