1234567891011121314151617181920212223242526272829303132333435363738 |
- ; @Author : liuyuqi
- ; @Contact : liuyuqi.gov@msn.cn
- ; @Time : 2019/08/05 07:06:02
- ; @Version : 1.0
- ; @License : (C)Copyright 2019 liuyuqi.
- ; @Desc : AHK默认全局,可以设置针对某一窗口执行快捷键
- ; win+space
- #space::
- IfWinExist, Untitled - Notepad
- WinActivate
- else
- WinActivate, Calculator
- Return
- ; ctrl+w
- ^w::
- if WinActive("ahk_class Notepad") or WinActive("ahk_class" . ClassName)
- WinClose
- Return
- ; ctrl+i
- ^i::
- IfWinActive, Untitled - Notepad {
- WinMaximize
- Send, Some text.{Enter}
- return
- }
- Return
- #IfWinActive ahk_class Notepad
- #z::
- #IfWinActive ahk_class WordPadClass
- #z::
- MsgBox You pressed Win+Z in either Notepad or WordPad.
- Return
|