Here I want to share the Mouse Scroll script that I wrote.
I keep the sources on Github and update regularly.
Please see the link for downloads and full description:
https://github.com/Mikhail22/Autohotkey---Mouse-scroll
So, in short it is a simple app which adds very nice mouse scroll functionality, system-wide.
I have chosen the right mouse button for toggling the scrolling, since it turns out that there is
no better option, at least for a traditional 2-button mouse.
It work super fine in Firefox with smooth scrolling enabled, and in GUI elements that scroll smoothly,
like e.g. Windows 10 main menu app list.
Actually works great with non-smooth scrolling as well.
To scroll, hold the right button and move the mouse vertically.
For the context menu, double-click the right mouse button.
Options that can be set (via editing variables in the source):
- speed adjustment
- invert scroll direction
- double right-click delay threshold (to open the context menu)
Feel free to comment and suggest improvements!
Currently I have only one minor problem with it - in order to work correctly, the app must be
run as two separate scripts - one that blocks the right mouse button and another one - main app.
I was trying hard to make it one script, but it never worked correctly - if I put the code that blocks
the right button into the main app, there appear some glitches, namely the rbutton is not blocked
completely: 1 of 10 times the rbutton event still leaks and opens the context menu.
Only putting it into a separate file solved it.
So it is a minor inconvenience for potential users, as they need to keep 2 scripts running.
Maybe experts can suggest some clever way to reliably block the rbutton from tmain app.
Update: 25 March 2019
Check out updated version on github. Major improvement to scrolling experience:
now it works much better by lower scroll speed (k) and in general, more precise and smooth.
Thanks to derekpock, who suggested this fix and made a PR on github.
Mouse scroll
Mouse scroll
Last edited by mikhail22 on 27 Mar 2019, 10:04, edited 1 time in total.
Re: Mouse scroll
thanks for sharing @mikhail22
I tried it and found it very usefull! especially on touchpad..
I tried it and found it very usefull! especially on touchpad..
Spoiler
Re: Mouse scroll
Yes, if you use other button and there is no conflict, only the main script is needed.
Though using mouse button has one big benefit - one hand operation. E.g. just browsing
usually don't need much keybord input, so most of the time my left hand is free.
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 77 guests