美文网首页
autohotkey配置文件

autohotkey配置文件

作者: 大胡子歌歌 | 来源:发表于2019-02-28 19:46 被阅读0次

    ;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

    相关文章

      网友评论

          本文标题:autohotkey配置文件

          本文链接:https://www.haomeiwen.com/subject/peygyqtx.html