Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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'm using Autohotkey .

I can use the following code to simulate a right click by Ctrl+0 , tried an worked fine.

SendInput {Click,Right}

However, I hope I can use Ctrl+ScrollLock to do the same, but the following code does not work.

SendInput {Click,Right}

Can someone help me out. thank you.

share|improve this question

Try with

Ctrl & ScrollLock::
SendInput {Click,Right}
share|improve this answer
Was going to also suggest the ampersand. – surfasb Sep 11 '11 at 2:30
Sorry, It does not work. But if I replace 'ScrollLock' with '0' , Ctrl+0 will work -- even with latest Autohotkey . – Jimm Chen Sep 11 '11 at 2:44
Indeed, and it seems to work with ^CapsLock. Interesting... – imiric Sep 11 '11 at 3:08
up vote 1 down vote accepted

Autohotkey forum helped me out. Using scancode(0x46) instead of 'ScrollLock' does the trick.

So I have to write:

SendInput {Click,Right}

share|improve this answer

Your Answer


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.