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 would like to map these keys to the corresponding text:

Page Up (

Page Down )

Num Lock =

I want to do this with Autohotkey but I'm having a hard time figuring out the script. I also only want to do this in excel.

I know I need to add #IfWinActive ahk_class XLMAIN

share|improve this question
add comment

1 Answer

You can either use SetTitleMatchMode, 2 and use a part of the window title like: Excel, or your solution with #IfWinActive ahk_class XLMAIN.

#IfWinActive ahk_class XLMAIN ; Start the Excel specific section
PgUp::Send, {(}
PgDn::Send, {)}
NumLock::Send, {=}
#IfWinActive , ; Close the Excel specific section
share|improve this answer
    
Thank you very much. –  user229409 Jun 11 '13 at 8:41
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.