SetDefaultMouseSpeed problem

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Willehkz123
Posts: 1
Joined: 13 Aug 2022, 10:41

SetDefaultMouseSpeed problem

Post by Willehkz123 » 13 Aug 2022, 10:45

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)

User avatar
boiler
Posts: 16912
Joined: 21 Dec 2014, 02:44

Re: SetDefaultMouseSpeed problem

Post by boiler » 13 Aug 2022, 13:08

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.

Post Reply

Return to “Ask for Help (v1)”