#include <IE.au3> Global Const $NETWORK_ALIVE_LAN = 0x1 Global Const $NETWORK_ALIVE_WAN = 0x2 $x =DLLCall("sensapi.dll","int","IsNetworkAlive","str",$NETWORK_ALIVE_LAN) If $x[0]=1 Then ;1 为网络连通 $oIE = _IECreate ("http://www.baidu.com/") Else ; 0 为网络不通或上不了网 $oIE = _IECreate ("C:\1.html") EndIf
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 06:37 , Processed in 0.084467 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.