Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .