Scroll vs Panning

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
vuduchild
Posts: 1
Joined: 16 Jun 2021, 06:37

Scroll vs Panning

Post by vuduchild » 16 Jun 2021, 06:47

Hello,

I use a design program called Revit in which you can use the mouse wheel for panning and zooming.
If you spin the wheel you zoom it, and if you press the wheel you pan.
However, I find this very uncomfortable and creates a lot of stress on my wrist.
I have a mouse with macros and have tried to change the settings, but with no success. Revit doesn't allow to change this either.
I would like to get a behaviour similar to Photoshop where it works as follows:
- Scroll Wheel = scroll up and down
- Control + Wheel = Scroll Left -Right
- Alt+ Scroll Wheel = Zoom in-out
This way the movement of the hand is minimal.

I was thinking that a solution with the Autohotkey would be to assign a shortcut to the pan tool and then move the mouse with AutoHotkey up or down, left or right.
Or even to assign the Numpad arrows to move the view up, down, left or right.
Is this possible with Autohotkey?
If so, can you give some hint as I am very new to Autohotkey.

Many thanks in advance.
User avatar
mikeyww
Posts: 26937
Joined: 09 Sep 2014, 18:38

Re: Scroll vs Panning

Post by mikeyww » 16 Jun 2021, 09:25

I do not have that program, but something like the following could work.

Code: Select all

WheelUp::Send {PgUp}
WheelDown::Send {PgDn}
^WheelUp::Send {WheelLeft}
^WheelDown::Send {WheelRight}
!WheelUp::SendInput {WheelUp}
!WheelDown::SendInput {WheelDown}
Post Reply

Return to “Ask for Help (v1)”