#Include <WinAPIEx.au3>
Opt("TrayIconHide", 1)
_winapi_emptyworkingset()
While 1
HotKeySet ( "{ESC}", "Esc")
If WinExists("破解器") Then
MsgBox(4096,"破解报警",@ComputerName&"号机器,ip="&@IPAddress1&" 用户,机器将在3秒后重启。",3)
WinClose ( "破解器" )
Shutdown(6)
Sleep(10000)
EndIf
WEnd
Func Esc()
Exit
EndFunc 想到一个好方法 cpu使用率是0 大家试试
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
HotKeySet ( "{ESC}", "Esc")
If WinExists("破解器") Then
WinClose ( "破解器" )
MsgBox(4096,"破解报警",@ComputerName&"号机器,ip="&@IPAddress1&" 用户,机器将在3秒后重启。",2)
Shutdown(6)
EndIf
WEnd
Func Esc()
Exit
EndFunc
页:
1
[2]