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 have found many ways to bind a key or key-combination to start a process or another key, how do I do it with mouse and keyboard combinations?

I want windows to do a page-up when hold shift and scroll up with the mouse, and vise versa.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can do this with AutoHotkey.

Simply use this script:

+WheelUp::SendInput {Shift Up}{PgUp}{Shift Down}
+WheelDown::SendInput {Shift Up}{PgDn}{Shift Down}

The + means while shift is held.

Shift must be released before sending page up/down, otherwise it interferes (try holding shift and using the keyboard page up/down buttons). That's what {Shift Up} does.

Shift is pressed down again after sending the page up/down, so you can go more than one page without physically releasing the key.

share|improve this answer
    
Thank you, I installed AutoHotKey and used your script. Works perfectly! I was knee deep in C# trying to figure out global hooks to Keyboard and Mouse, however, this solved my problem. –  André Christoffer Andersen Aug 17 '12 at 12:38
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.