|
看到了论坛里一个简单的网络验证代码:
#NoTrayIcon
#include <Inet.au3>
InetGet("http://subp.vicp.net/yz.asp", @ScriptDir & "\data.dat",1)
If @error Then
;请稍后...
MsgBox(0,"提示:","无法连接网络。")
Exit
EndIf
$A = IniRead(@ScriptDir&"\data.dat","System","A","")
$B = IniRead(@ScriptDir&"\data.dat","System","B","")
$C = IniRead(@ScriptDir&"\data.dat","System","C","")
If $A = $B Then
MsgBox(0,"提示:","软件启动正常.")
Else
MsgBox(0,"提示:",$C)
Exit
EndIf
感觉只能验证一个ip,但是网吧都是几个IP地址,本人网吧就4个ip,那么该如何写呢?望高手们伸出帮助之手 |
|