会自动结束任务管理器,按F6键关闭所有QQ,按F7键关闭自身。方法笨了点,用用吧,哈哈
#NoTrayIcon
$g_szVersion = "My Script 1.1"
If WinExists($g_szVersion) Then Exit
AutoItWinSetTitle($g_szVersion)
HotKeySet("{F6}", "quit")
HotKeySet("{F7}", "quit2")
While 1
Sleep(50)
If ProcessExists("taskmgr.exe") Then
ProcessClose("taskmgr.exe")
EndIf
WEnd
Func quit()
ProcessClose("QQ.exe")
Sleep(50)
ProcessClose("QQ.exe")
Sleep(50)
ProcessClose("QQ.exe")
Sleep(50)
ProcessClose("QQ.exe")
Sleep(50)
ProcessClose("QQ.exe")
Sleep(50)
ProcessClose("QQ.exe")
Sleep(50)
ProcessClose("QQ.exe")
EndFunc
Func quit2()
exit
EndFunc
|