原文:https://www.jianshu.com/p/1d0992586f2a 原文使用 ctrl + ` 快捷键来最小化当前窗口
本文采用 ctrl + ↓
GroupAdd,ABGroup, ahk_exe cloudmusic.exe
GroupAdd,ABGroup, ahk_exe WeChat.exe
GroupAdd,ABGroup, ahk_exe chrome.exe
GroupAdd,ABGroup, ahk_exe msedge.exe
GroupAdd,ABGroup, ahk_exe iexplore.exe
; intel显卡中心
GroupAdd,ABGroup, ahk_exe Gfxv4_0.exe
; 360的软件好像禁止脚本在它的界面内运行
; 聚合explorer的软件
GroupAdd,ABGroup, ahk_exe Clover.exe
GroupAdd,ABGroup, ahk_exe extab.exe
GroupAdd,ABGroup, ahk_class CabinetWClass
; 所有 UWP 应用
GroupAdd,ABGroup, ahk_exe ApplicationFrameHost.exe
GroupAdd,ABGroup, ahk_exe Photoshop.exe
GroupAdd,ABGroup, ahk_exe Designer.exe
GroupAdd,ABGroup, ahk_exe AxureRP9.exe
GroupAdd,ABGroup, ahk_class Notepad++
GroupAdd,ABGroup, ahk_class PotPlayer64
;===== 如果此最小化脚本要和其他脚本合并,上面的东西要放开头
;【最小化】 ctrl + ↓
;===== 针对程序组ab 执行 a 方案
#IfWinActive, ahk_group ABGroup
;===== 需要修改 快捷键 的在这里修改1
^Down::WinMinimize, A
#IfWinActive
;===== 剔除程序组ab 执行 b 方案
#IfwinNotActive, ahk_group ABGroup
;===== 需要修改 快捷键 的这里也要修改2
^Down::
{
WinGet,S,MinMax,A
if S=0
Send, #{Down}
else {
sleep 10
Send {Alt down}{Space}
Sleep 10
Send {Alt up}n
}
}
return
#IfwinNotActive
Alt 由英文标点 ! 表示
Ctrl 由 ^ 表示
Win 由 # 表示
Shift 由 + 表示