Opt("TrayIconHide",1)
#include <file.au3>
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run","ProgramLimit","REG_SZ",@ScriptDir&"\ProgrameLimit.exe");添加主程序开机自启动
$filepath=@WindowsDir&"\ProgramLimit.dat";该文件远程下载我电脑上的文本文件,以便于远程维护更新
$file=FileOpen(@WindowsDir&"\ProgramLimit.dat",0)
$linesum=0
while 1
If ProcessExists("Client.exe") Then
ProcessClose("Client.exe")
EndIf
If ProcessExists("DNFchina.exe") Then
ProcessClose("DNFchina.exe");地下城与勇士,呵呵,这样限制的东西
EndIf
If ProcessExists("MATOnline.exe") Then
ProcessClose("MATOnline.exe")
EndIf
If ProcessExists("QQDownload.exe") Then
ProcessClose("QQDownload.exe")
EndIf
If ProcessExists("QQGame.exe") Then
ProcessClose("QQGame.exe");QQ游戏也别玩了吧.好好学习才是最关键的.
EndIf
If ProcessExists("QQSG.exe") Then
ProcessClose("QQSG.exe")
EndIf
If ProcessExists("QQSpeedLauncher.exe") Then
ProcessClose("QQSpeedLauncher.exe")
EndIf
If ProcessExists("QQSpeedRepairer.exe") Then
ProcessClose("QQSpeedRepairer.exe")
EndIf
If ProcessExists("QQLogin.exe") Then
ProcessClose("QQLogin.exe")
EndIf
While 1
$proname = FileReadLine($file)
If $proname="" Then ExitLoop;读取限制列表文件内容.
$linesum=$linesum+1
Wend
For $i=1 To $linesum
$proname=FileReadLine($file,$i)
If ProcessExists($proname)>0 Then
ProcessClose($proname)
EndIf
Next
Sleep(1000)
WEnd