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

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

^0:: 
SendInput {Click,Right}
return

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

^ScrollLock:: 
SendInput {Click,Right}
return

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:

^SC046:: 
SendInput {Click,Right}
return

http://www.autohotkey.com/forum/viewtopic.php?p=473945

share|improve this answer

Try with

Ctrl & ScrollLock::
SendInput {Click,Right}
return
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 1.1.03.00 . –  Jimm Chen Sep 11 '11 at 2:44
1  
Indeed, and it seems to work with ^CapsLock. Interesting... –  imiric Sep 11 '11 at 3:08

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.