Jump Scroll Fix Help

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
captaincal69
Posts: 1
Joined: 28 Nov 2021, 17:18

Jump Scroll Fix Help

Post by captaincal69 » 28 Nov 2021, 18:12

When I roll my mousewheel UP, it registers few amounts of DOWNs, and vice versa, something like this:
1 roll of mousewheel up → uuuuduuduuuuuu,
1 roll of mousewheel down → udddduddddddud,

A quick fix to this is to count the amount of u and d in a certain amount of millisec then invert or omit the minority, for example:
uuuuduuduuuuuu = 12 ups and 2 downs, the script will then invert or omit the 2 downs then execute the scrolls.

I have been trying out SetTimers and it's not working or there's something wrong w my code.
Can you help me? Thank you very much.

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

Re: Jump Scroll Fix Help

Post by boiler » 28 Nov 2021, 18:51

You should use a hotkey for each and record the recent history in an array so it can be determined which one to send. You probably would need to record a timestamp as part of the history.

Post Reply

Return to “Ask for Help (v1)”