I've just created an app that does what DragLock failed to do with up/down/left/right axes, as well as added diagonals and 3 point arcs.I am looking for a software (or workaround) alternative to DragLock.
; Hold Ctrl, then press and drag LButton -> Y stays fixed (horizontal line)
CoordMode, Mouse, Screen
~Ctrl::
KeyWait, LButton, D ; wait for left button down while Ctrl is held
MouseGetPos, sx, sy
While GetKeyState("LButton","P") && GetKeyState("Ctrl","P")
{
MouseGetPos, cx, cy
MouseMove, cx, sy, 0
Sleep, 10
}
Return
; Hold Alt, then press and drag LButton -> X stays fixed (vertical line)
CoordMode, Mouse, Screen
~Alt::
KeyWait, LButton, D
MouseGetPos, sx, sy
While GetKeyState("LButton","P") && GetKeyState("Alt","P")
{
MouseGetPos, cx, cy
MouseMove, sx, cy, 0
Sleep, 10
}
Return
I’ve run into the same issue with DragLock, and while it’s handy, the jitter makes it tough for precise tasks like drawing straight lines in Paint. A simple workaround is holding the Shift key while using the Pencil or Line tool in Paint (and many other apps), which forces clean horizontal, vertical, or diagonal lines. If you want more flexibility, tools like Krita or GIMP handle straight-line drawing far better, and if you’re comfortable with scripting, an AutoHotkey script can mimic DragLock but with smoother control.Hi Everyone,
I am looking for a software (or workaround) alternative to DragLock. DragLock is quite intuitive and works well in most situations when you'd want the mouse to move in a straight horizontal or vertical line.
The issue however is that the intermediate movement of the mouse under DragLock until you reach your destination, can be a little jittery. So when using it for a purpose such as drawing a straight line with the Pencil tool in MS Paint, it doesn't work satisfactorily as I'd expect (screenshot in a picture below). I have done a deep online search but haven't yet found a suitable solution.
In the DonationCoder Forum discussion here user @IainB mentioned a Synaptics touchpad software that could help constrain the mouse motion. I can't seem to find that either.
Any help will be greatly appreciated. Thanks!
View attachment 40089