topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 5:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: For the love of all that is holy stop the ctrl+MouseWheel text scaling - SOLVED  (Read 6706 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
I am CONSTANTLY, and I mean many times per day, inadvertently changing the scaling of text in all manner of applications (especially web browser but also text editors), by scrolling the mouse wheel while the control key is held down.
Is there a way to turn off this evil behavior?
« Last Edit: February 19, 2021, 05:54 PM by mouser »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,964
    • View Profile
    • Donate to Member
What is it you want / expect to happen (or is it that you want to scroll, and inadvertently have the Ctrl key pressed from last use of same ?)

If there is desired behaviour (as opposed to no behaviour :p) could this be implemented via AHK? [that directed at the AHK specialists...]
Tom

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
The problem is that I have a new logitech mouse, which has momentum on the scroll wheel, so essentially the scroll wheel sometimes keep moving in the direction i scroll it for a couple of seconds.  So sometimes I will spin the scroll wheel and while it's still spinning I will go to do something that requires me to press the control key, and then all of a sudden I've changed the text font size from 10 to 1 or from 10 to 1000..

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
How do I stop my mouse from resizing?

Press Start button on the keyboard, type Mouse & Touchpad settings and select the top most search result. From the window click on Additional mouse option. Click on the Device Settings tab and click on Settings button. From the left side panel, click Pinch Zoom option and uncheck the box Enable Pinch Zoom.23. sep. 2016

-not tested by me

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
The problem is that I have a new logitech mouse, which has momentum on the scroll wheel, so essentially the scroll wheel sometimes keep moving in the direction i scroll it for a couple of seconds.

What's the model?

Just so I know never to buy it :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
MX Master 3

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
A bit of AutoHK to apparently fix it:
https://answers.micr...ca-bf0f-d985bfdd5a59

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
AHK (and airvine2 the person who made that ahk post) to the rescue! Thanks for finding that 4wd.
So now I just need to tweak this scipt so that I can still do Ctrl+Mousewheel when I want to.. perhaps by remapping Ctrl+Alt+Wheel to send Ctrl+Wheel (actually it looks like Ctrl+Alt+Wheel zooms the size also, so maybe as long as the AHK script doesn't catch both it's all good).

EDIT: Works perfectly, no editing needed.  Ctrl+MouseWheel scroll is disabled, but I can trigger it when I need to with Ctrl+Alt+Wheel.  This solution is perfect since Ctrl+Alt is almost never used by me, so it's not something I will accidentally hit while trying to do something else the wheel is still free spinning.

Awesomeness -- I should have asked this question weeks ago.  DonationCoder forum (and AHK) to the rescue!!  :-* :-* :-* :-* :-* :-* :-* :-*
« Last Edit: February 15, 2021, 07:46 PM by mouser »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Is there a way to turn off this evil behavior?

Okay, I've opened the "Holy Stop" repository to work on a solution that blocks the events based on a bool/flag + a KB/mouse hook.

-

Let's call the boolean "blockScaling".

Monitor:

A: Mouse wheel scroll, no control/Ctrl key.
B: Ctrl keydown, no mouse wheel.
C: ctrl+MouseWheel.
D: Ctrl keyup, no mouse wheel.


PSEUDO:

A, then C: blockScaling = true;
(Assume momentum scroll)

B: blockScaling = false;
(Assume manual keypress / intent)

D: blockScaling = true;
(Assume end of user intent)

IF ctrl+MouseWheel AND blockScaling = false then
    ALLOW ctrl+MouseWheel
ELSE
    BLOCK ctrl+MouseWheel

---

The idea being to ENSURE you have clicked CONTROL down before allowing the passing/processing of ctrl+MouseWheel for regular text scaling.

When it's the WM_MOUSEWHEEL message with no modifier, disable it until next manual intent on Ctrl keydown.

This can work, so it's worth a try for a February release :)

Cheers! :Thmbsup:
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: February 18, 2021, 11:36 PM by publicdomain »

ich thys

  • Participant
  • Joined in 2020
  • *
  • Posts: 52
    • View Profile
    • Donate to Member
I'm glad I saw this. Been having trouble with my vision and new laptop screen displaying text a little smaller than I can comfortably read without squinting. Your problem is my solution, in a sense. I've tried your ctrl plus mouse wheel, and so far it works to enlarge text in Brave and Edge (which seems to stay that way until deliberately changed), as well as MS Word 2003 (which reverts with file switching).
My plain Jane mouse; Amazon Basics 3-Button USB Wired Computer Mouse (Black).
Even better yet, the browsers don't add an unwanted bottom scroll bar in the process; they just make text more readable. Thank you.

superboyac

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
    • View Profile
    • Donate to Member
nice! same complaint here, same mouse.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
I'm glad I saw this. Been having trouble with my vision and new laptop screen displaying text a little smaller than I can comfortably read without squinting. Your problem is my solution, in a sense. I've tried your ctrl plus mouse wheel, and so far it works to enlarge text in Brave and Edge (which seems to stay that way until deliberately changed), as well as MS Word 2003 (which reverts with file switching).
My plain Jane mouse; Amazon Basics 3-Button USB Wired Computer Mouse (Black).
Even better yet, the browsers don't add an unwanted bottom scroll bar in the process; they just make text more readable. Thank you.

There's also the standard hotkeys, Ctrl++, Ctrl+-, Control+0 ... Zoom in, zoom out, and zoom 100%.

ich thys

  • Participant
  • Joined in 2020
  • *
  • Posts: 52
    • View Profile
    • Donate to Member
I'm glad I saw this. Been having trouble with my vision and new laptop screen displaying text a little smaller than I can comfortably read without squinting. Your problem is my solution, in a sense. I've tried your ctrl plus mouse wheel, and so far it works to enlarge text in Brave and Edge (which seems to stay that way until deliberately changed), as well as MS Word 2003 (which reverts with file switching).
My plain Jane mouse; Amazon Basics 3-Button USB Wired Computer Mouse (Black).
Even better yet, the browsers don't add an unwanted bottom scroll bar in the process; they just make text more readable. Thank you.

There's also the standard hotkeys, Ctrl++, Ctrl+-, Control+0 ... Zoom in, zoom out, and zoom 100%.
Thank you. By the way, do you or anyone know the name of that program that keeps Desktop icons neatly arranged the way one wants it to stay?

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Thank you. By the way, do you or anyone know the name of that program that keeps Desktop icons neatly arranged the way one wants it to stay?

Only one I've used is DesktopOK, doesn't keep icons in position but it does allow you to save/restore their positions.

ich thys

  • Participant
  • Joined in 2020
  • *
  • Posts: 52
    • View Profile
    • Donate to Member
Thank you. By the way, do you or anyone know the name of that program that keeps Desktop icons neatly arranged the way one wants it to stay?

Only one I've used is DesktopOK, doesn't keep icons in position but it does allow you to save/restore their positions.
Yes, that's the one. Didn't realize it can't  keep position, but at least it can save/restore position.

edit: For Windows x64 looks like the extracted subfiles are all titled in Slavic or something.
« Last Edit: February 22, 2021, 11:17 AM by ich thys »