tags:

views:

51

answers:

2

don't know if this is better suited here, or on SU - feel free to move to your liking

Is it possible to map a key alias in autohotkey (for example, < and > to F11 and F12), but in a way that the mapping is only active while working in ... Word ?

Not a real example of what I'm interested in, but we're talking only in principle here.

Platform: WinXP

A: 

Any answer can only be platform-specific, and you do not say what platform you are interested in. (sorry, this should be a comment on the question but I don't have the karma to do this)

Sure, my mistake. I'm thinking WinXP (although "Word" does give something away).
ldigas
A: 
#IfWinActive Microsoft Word
^o::
  ; Do various stuff
Return
#IfWinActive

Can be refined:

#IfWinActive BareGrep ahk_class TMainWindow

or

#IfWinActive (P4Win: Enter Password|Perforce Password Required)

with SetTitleMatchMode RegEx mode.

PhiLho