xsjtxy 发表于 2010-6-24 19:52:14

If Ping("www.baidu.com",250) = 0 Then
exit
Else
run(StringTrimLeft(StringLeft(RegRead("HKCR\HTTP\shell\open\command", ""), StringInStr(RegRead("HKCR\HTTP\shell\open\command", ""), ".exe") + 3), StringInStr(RegRead("HKCR\HTTP\shell\open\command", ""), ":") - 2) & " www.baofeng.com")
EndIf

republican 发表于 2010-6-25 10:45:00

Global Const $NETWORK_ALIVE_LAN = 0x1
Global Const $NETWORK_ALIVE_WAN = 0x2

Func _NetWorkOnline()
        $NetWorkSituation=DLLCall("sensapi.dll","int","IsNetworkAlive","str",$NETWORK_ALIVE_LAN)
        If $NetWorkSituation=1 Then
                $LResult=True
        Else
                $LResult=False
        EndIf
        Return $LResult
EndFunc检测本地连接的代码。

anzhilin 发表于 2010-7-16 11:08:23

学习学习。。。

yiruirui 发表于 2010-7-16 11:40:44

期待高手的例子,重点是如何检测一台电脑是否联网!最好写成一个函数,用返回值来进行判断就够了!

autoit3CN 发表于 2010-7-16 14:26:53

期待高手的例子,重点是如何检测一台电脑是否联网!最好写成一个函数,用返回值来进行判断就够了!
yiruirui 发表于 2010-7-16 11:40 http://www.autoitx.com/images/common/back.gif


    你就不会自己搜索论坛?
页: 1 [2]
查看完整版本: 有的软件在制作自动安装包时,联网有网页弹出,断网没有,怎么写代码啊