Hi.
I am using a wireless mouse on my Windows 10. Recently my mouse started behaving erraticaly, i.e. sometimes the cursor suddenly "teleports" a few centimeters. I believe it to be a software issue. I was unable to find a solution on the web.
Is there a way to write a script so that my PC would ignore "too fast" mouse movement? Like, if it moves 100 px within 0.05 seconds?
Ignore rapid jerky mouse movement
Re: Ignore rapid jerky mouse movement
Welcome to this AutoHotkey forum!
I do not have an answer, but a question: what does it mean to ignore a mouse movement that has already occurred?
I think that there is a way to block the mouse but capture the movements. It seems that this could make for a rather unpleasant experience! There may be posts to accomplish it if you wish.
Ideas:
https://www.autohotkey.com/board/topic/50381-mapping-mouse-movements-to-arrow-keys/
viewtopic.php?t=45307&start=20
viewtopic.php?p=55503#p55503
I do not have an answer, but a question: what does it mean to ignore a mouse movement that has already occurred?
I think that there is a way to block the mouse but capture the movements. It seems that this could make for a rather unpleasant experience! There may be posts to accomplish it if you wish.
Ideas:
https://www.autohotkey.com/board/topic/50381-mapping-mouse-movements-to-arrow-keys/
viewtopic.php?t=45307&start=20
viewtopic.php?p=55503#p55503
Re: Ignore rapid jerky mouse movement
Did you check the batteries?
Russ
Russ
Re: Ignore rapid jerky mouse movement
Good question. I have a trackball & clean the dust out of it periodically, too.
Re: Ignore rapid jerky mouse movement
Hallo,
try:
try:
Code: Select all
#Persistent
CoordMode, Mouse, Screen
SetTimer, Mouse, 50
MouseGetPos, X1, Y1
Mouse:
MouseGetPos, X2, Y2
IF (10000 < (X2-X1)*(X2-X1)+(Y2-Y1)*(Y2-Y1))
MouseMove, X1, Y1, 0 ; moves > 100 px within 0.05 seconds
Else
X1 := X2, Y1 := Y2
Return