开发者

mapping a key so the mapping is valid only in certain application

开发者 https://www.devze.com 2022-12-12 23:33 出处:网络
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

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 in开发者_运维知识库terested in, but we're talking only in principle here.

Platform: WinXP


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

0

精彩评论

暂无评论...
验证码 换一张
取 消