Take the 2-minute tour ×

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

2 Answers 2

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

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

Your Answer


