按照你的一人知道,全体下线的想法:
#NoTrayIcon
HotKeySet("^!p", 'duankai')
While 1
If FileExists("\\sever\共享\上网\duankai.txt") Then duankai()
Sleep(20)
WEnd
Func duankai()
If Not FileExists("\\sever\共享\上网\duankai.txt") Then FileWrite("\\sever\共享\上网\duankai.txt","")
Run(@ComSpec & " /c " & 'netsh interface ip set dns name="本地连接" source=dhcp', "", @SW_HIDE)
If ProcessExists("IEXPLORE.EXE") Then ProcessClose("IEXPLORE.EXE")
If ProcessExists("Maxthon.exe") Then ProcessClose("Maxthon.exe")
If ProcessExists("qq.exe") Then ProcessClose("qq.exe")
If ProcessExists("Thunder.exe") Then ProcessClose("Thunder.exe")
If ProcessExists("Thunder5.exe") Then ProcessClose("Thunder5.exe")
If ProcessExists("Thunder4.exe") Then ProcessClose("Thunder4.exe")
If ProcessExists("txplatform.exe") Then ProcessClose("txplatform.exe")
$pos = MouseGetPos()
MouseMove(@DesktopWidth, @DesktopHeight - 15, 0)
MouseMove(@DesktopWidth / 6 * 5, @DesktopHeight - 15, 3)
MouseMove($pos[0], $pos[1], 0)
Exit
EndFunc ;==>duankai
[ 本帖最后由 liongodmien 于 2008-9-29 21:34 编辑 ] |