autohotkey配置文件

;Notes: #==win !==Alt 2015-05-20 �^==Ctr +==shift
; 快捷字符串-单行
::/con::console.log();
::/js::javascript:;
; 快捷字符串 多行用括号
::/init::
(
def init(self,name,age):
self.name = name
self.age = age
)

; 快捷键运行程序

n::run, C:\Program Files (x86)\Notepad++\notepad++.exe

; 打开网址

b::Run https://www.baidu.com/

v::Run https://unbug.github.io/codelf/

; 检测进程窗口名字复制到剪切板

t::WinGetClass, Clipboard, A

;自动隐藏激活chrome

c::

IfWinNotExist ahk_class Chrome_WidgetWin_1
{
Run "C:\Users\v_xilliu\AppData\Local\Google\Chrome\Application\chrome.exe"
WinActivate
}
Else IfWinNotActive ahk_class Chrome_WidgetWin_1
{
WinActivate
}
Else
{
WinMinimize
}
Return

;自动隐藏激活pycharm

z::

IfWinNotExist ahk_class SunAwtFrame
{
Run "C:\Program Files\JetBrains\PyCharm 2018.3.2\bin\pycharm64.exe"
WinActivate
}
Else IfWinNotActive ahk_class SunAwtFrame
{
WinActivate
}
Else
{
WinMinimize
}
Return

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容