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

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. – JvE010 Jun 11 '13 at 8:41

You must log in to answer this question.

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