Jump to content

Recommended Posts

Posted

Looking for a way to change mouse scroll behaviour on the fly. Default lines is 3, and this is mainly fine, but occasionally I would find it useful for this to be 1. Ideally, by holding down a modifier key.

 

I recently installed StrokesPlus, which (finally!) allows my 3 button devices to do browser back/forward; and there does seem to be a way to do it in that (https://www.strokesplus.com/forum/topic/416), but I don't understand the script!

Posted

I've got it working with AutoHotKey:

  1. Change amount of lines scrolled by mouse wheel to 1 line at an OS level with the Windows settings app
  2. Install AutoHotKey
  3. Create AutoHotkey.ahk save here: C:\Program Files\AutoHotkey
  4. Add this code to AutoHotkey.ahk and save the file:
    WheelUp::Send {WheelUp 3}
    WheelDown::Send {WheelDown 3}
    
    #WheelUp::Send {WheelUp 1}
    #WheelDown::Send {WheelDown 1}


  5. Run AutoHotKey, now holding the Windows key while scrolling should scroll a single line and scrolling normally should scroll 3 lines

  • Thanks 1
Posted
I've got it working with AutoHotKey:

  1. Change amount of lines scrolled by mouse wheel to 1 line at an OS level with the Windows settings app
  2. Install AutoHotKey
  3. Create AutoHotkey.ahk save here: C:\Program Files\AutoHotkey
  4. Add this code to AutoHotkey.ahk and save the file:
    WheelUp::Send {WheelUp 3}
    WheelDown::Send {WheelDown 3}
    
    #WheelUp::Send {WheelUp 1}
    #WheelDown::Send {WheelDown 1}


  5. Run AutoHotKey, now holding the Windows key while scrolling should scroll a single line and scrolling normally should scroll 3 lines

Thank you.

 

I'll try combining that with what StrokesPlus was doing so I only need one extra app running.

  • Thanks 1
Posted

What are you doing with strokesplus at the moment - backward and forwards in browsers shouldn't be too hard in AHK if this is all strokesplus is doing? What keybinds have you tied to the forward/backwards?

 

A quick google turns up this:

~LButton & RButton::Send {Browser_forward}
RButton & LButton::Send {Browser_back}
RButton::Send {RButton}

 

Adding this the AHK allows you to hold the left mouse button and click the right to move forwards and hold the right mouse button and click the left to move backwards in a browser from my testing.

  • Thanks 1
Posted
What are you doing with strokesplus at the moment - backward and forwards in browsers shouldn't be too hard in AHK if this is all strokesplus is doing? What keybinds have you tied to the forward/backwards?

 

A quick google turns up this:

~LButton & RButton::Send {Browser_forward}
RButton & LButton::Send {Browser_back}
RButton::Send {RButton}

Adding this the AHK allows you to hold the left mouse button and click the right to move forwards and hold the right mouse button and click the left to move backwards in a browser from my testing.

 

 

Thanks! I'll try later. That's all I was using on SP. It had something based on the earlier Rocker that used just those keys.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...