Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to be able to modify the scrolling/middle click behavior for individual apps on Windows 7, so that the scroll to zoom direction is always consistent across apps. This script makes the middle button act as a hand tool in Adobe Acrobat, for instance:

; Hand tool with middle button in Adobe Reader
#IfWinActive ahk_class AdobeAcrobat
Mbutton::
#IfWinActive ahk_class AcrobatSDIWindow
Mbutton::
Send {Space down}{LButton down}  ; Hold down the left mouse button.
KeyWait Mbutton  ; Wait for the user to release the middle button.
Send {LButton up}{Space up}  ; Release the left mouse button.
return
#IfWinActive

(It would be great if this could be adapted to allow "throwing" the document, too, like in Android or iPhone interfaces, but I don't know if it's possible to control scrolling that precisely)

How do I invert the scroll wheel-->zoom direction?

share|improve this question
    
What mouse do you have? I've got a Razer mouse and the keys (even the scroll wheel) can be customized in the drivers. Maybe driver customization is more easy than an direkt auto hotkey code. –  Michael K Feb 16 '11 at 18:16
    
I want to customize on a per-app basis, though. Some apps scroll up zooms in, others scroll up zooms out. I want to make all apps behave as similarly as possible. –  endolith Feb 16 '11 at 19:05
add comment

1 Answer

up vote 1 down vote accepted

Found an answer here: Topic: mouse wheel zoom direction. This will swap the scroll direction in Firefox:

#IfWinActive, ahk_class MozillaUIWindowClass
WheelDown::WheelUp
WheelUp::WheelDown

Apparently to get it to work for multiple apps, you'd need to create a window group.

Unfortunately this would affect things like list boxes inside those apps, too. AutoHotkey can tell what "ClassNN" you're hovering over inside of an app, so that might help narrow it down, but I'm not sure how to use that yet.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.