Post by ljkformat » 21 Sep 2014, 09:30
tmplinshi wrote:ljkformat wrote:但一次只能关闭一个QQ到右下角
Code: Select all
GroupAdd, Windows_CloseToTray, QQ ahk_class TXGuiFoundation
; GroupAdd, Windows_CloseToTray, 微博桌面2015 ahk_class XLUEFrameHostWnd ; 还可以继续添加其他的窗口
WinClose, ahk_group Windows_CloseToTray
谢谢,我后面自己弄了一个
帮我看看能不能优化一下
DetectHiddenWindows, on
IfWinNotExist,ahk_class TXGuiFoundation
Run ,F:\Program Files (x86)\QQ6.2(12179)木子李三显IP清爽加速版\Bin\QQ.exe, , ,ThisPID
WinWait, ahk_class TXGuiFoundation
WinActivate ,ahk_class TXGuiFoundation
ControlClick, x250 y374, QQ,,,, Pos
sleep ,40000
;进行隐藏窗口
Loop 5 ;循环次数
{
CoordMode ,Mouse, Relative ;设置鼠标的坐标系统,坐标相对于激活的窗口
Sleep,500
MouseMove,280,20
MouseClick
}
Run, f:\Program Files (x86)\AliWangWang\AliIM.exe
WinWait, ahk_class StandardFrame
WinActivate, ahk_class StandardFrame
WinWaitActive, ahk_class StandardFrame
sleep ,15000
WinClose ,ahk_class StandardFrame
sleep ,500
Run, f:\Program Files\Netease\网易闪电邮\Start.exe
WinWait, ahk_class FlashMail MainForm
WinActivate, aahk_class FlashMail MainForm
WinWaitActive, ahk_class FlashMail MainForm
WinClose ,ahk_class FlashMail MainForm
sleep ,500
Run, f:\Program Files\Foxmail 7.0\Foxmail.exe
WinWait, ahk_class TFoxMainFrm.UnicodeClass
WinActivate, ahk_class TFoxMainFrm.UnicodeClass
WinWaitActive ,ahk_class TFoxMainFrm.UnicodeClass
winclose , ahk_class TFoxMainFrm.UnicodeClass
sleep ,500
DetectHiddenWindows, on
IfWinNotExist,ahk_class XLUEFrameHostWnd
Run ,E:\Program Files (x86)\Sina\Weibo2012\Bin\Weibo2015.exe, , ,ThisPID
WinWait, ahk_class ahk_class XLUEFrameHostWnd
WinActivate ,ahk_class ahk_class XLUEFrameHostWnd
Sleep,15000
;进行隐藏窗口
Loop 2 ;循环次数
{CoordMode ,Mouse, Relative ;设置鼠标的坐标系统,坐标相对于激活的窗口
MouseMove , 315, 17
MouseClick
}
sleep ,1000
Run, C:\Program Files (x86)\Internet Download Manager\IDMan.exe
WinWait, ahk_class #32770
WinActivate, ahk_class #32770
WinWaitActive, ahk_class #32770
sleep ,1500
Loop 2 ;循环次数
{
WinClose ,ahk_class #32770
}
ExitApp
[quote="tmplinshi"][quote="ljkformat"]但一次只能关闭一个QQ到右下角[/quote]
[code=autohotkey file=Script.ahk]GroupAdd, Windows_CloseToTray, QQ ahk_class TXGuiFoundation
; GroupAdd, Windows_CloseToTray, 微博桌面2015 ahk_class XLUEFrameHostWnd ; 还可以继续添加其他的窗口
WinClose, ahk_group Windows_CloseToTray[/code][/quote]
谢谢,我后面自己弄了一个
帮我看看能不能优化一下
DetectHiddenWindows, on
IfWinNotExist,ahk_class TXGuiFoundation
Run ,F:\Program Files (x86)\QQ6.2(12179)木子李三显IP清爽加速版\Bin\QQ.exe, , ,ThisPID
WinWait, ahk_class TXGuiFoundation
WinActivate ,ahk_class TXGuiFoundation
ControlClick, x250 y374, QQ,,,, Pos
sleep ,40000
;进行隐藏窗口
Loop 5 ;循环次数
{
CoordMode ,Mouse, Relative ;设置鼠标的坐标系统,坐标相对于激活的窗口
Sleep,500
MouseMove,280,20
MouseClick
}
Run, f:\Program Files (x86)\AliWangWang\AliIM.exe
WinWait, ahk_class StandardFrame
WinActivate, ahk_class StandardFrame
WinWaitActive, ahk_class StandardFrame
sleep ,15000
WinClose ,ahk_class StandardFrame
sleep ,500
Run, f:\Program Files\Netease\网易闪电邮\Start.exe
WinWait, ahk_class FlashMail MainForm
WinActivate, aahk_class FlashMail MainForm
WinWaitActive, ahk_class FlashMail MainForm
WinClose ,ahk_class FlashMail MainForm
sleep ,500
Run, f:\Program Files\Foxmail 7.0\Foxmail.exe
WinWait, ahk_class TFoxMainFrm.UnicodeClass
WinActivate, ahk_class TFoxMainFrm.UnicodeClass
WinWaitActive ,ahk_class TFoxMainFrm.UnicodeClass
winclose , ahk_class TFoxMainFrm.UnicodeClass
sleep ,500
DetectHiddenWindows, on
IfWinNotExist,ahk_class XLUEFrameHostWnd
Run ,E:\Program Files (x86)\Sina\Weibo2012\Bin\Weibo2015.exe, , ,ThisPID
WinWait, ahk_class ahk_class XLUEFrameHostWnd
WinActivate ,ahk_class ahk_class XLUEFrameHostWnd
Sleep,15000
;进行隐藏窗口
Loop 2 ;循环次数
{CoordMode ,Mouse, Relative ;设置鼠标的坐标系统,坐标相对于激活的窗口
MouseMove , 315, 17
MouseClick
}
sleep ,1000
Run, C:\Program Files (x86)\Internet Download Manager\IDMan.exe
WinWait, ahk_class #32770
WinActivate, ahk_class #32770
WinWaitActive, ahk_class #32770
sleep ,1500
Loop 2 ;循环次数
{
WinClose ,ahk_class #32770
}
ExitApp