send,#m ;最小化所有窗口
IfWinExist 库 ; IfWinExist 后跟程序标题(区分大小写
{
WinActivate;激活窗口
}
else
{
Run explorer.exe;打开文件管理器
WinWait 库 ; 等待对应窗口出现
WinActivate ; 激活对应窗口
}
WinRestore A ; 取消最大化
WinMove, A,, 0, 0, A_ScreenWidth/2, A_ScreenHeight-45 ;不知道任务栏高度怎么求,所以减了45
IfWinExist 下载 ; IfWinExist 后跟程序标题(区分大小写
{
WinActivate
}
else
{
Run explorer.exe D:\用户目录\下载
WinWait 下载 ; 等待对应窗口出现
WinActivate ; 激活对应窗口
}
WinRestore A
WinMove, A,, A_ScreenWidth/2, 0, A_ScreenWidth/2, A_ScreenHeight-45
IfWinExist 库 ; IfWinExist 后跟程序标题(区分大小写
{
WinActivate;激活窗口
}
else
{
Run explorer.exe;打开文件管理器
WinWait 库 ; 等待对应窗口出现
WinActivate ; 激活对应窗口
}
WinRestore A ; 取消最大化
WinMove, A,, 0, 0, A_ScreenWidth/2, A_ScreenHeight-45 ;不知道任务栏高度怎么求,所以减了45
IfWinExist 下载 ; IfWinExist 后跟程序标题(区分大小写
{
WinActivate
}
else
{
Run explorer.exe D:\用户目录\下载
WinWait 下载 ; 等待对应窗口出现
WinActivate ; 激活对应窗口
}
WinRestore A
WinMove, A,, A_ScreenWidth/2, 0, A_ScreenWidth/2, A_ScreenHeight-45