找回密码
 加入
搜索
查看: 1779|回复: 4

这短脚本怎么死循环啊?

[复制链接]
发表于 2009-5-17 14:14:54 | 显示全部楼层 |阅读模式
本帖最后由 fupsky 于 2009-6-6 14:34 编辑

While 1
        $asp=FileGetShortcut("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch" & "\启动 Internet Explorer 浏览器.lnk")
        if $asp[2] <> "http://www.v232.com/sogou.sz?fupsky" Then
                FileCreateShortcut(@ProgramFilesDir & "\Internet Explorer\iexplore.exe", "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch" & "\启动 Internet Explorer 浏览器.lnk", "", "http://www.v232.com/sogou.sz?fupsky")
        EndIf
WEnd

好郁闷哦!CPU的使用率总是50%以上……


管理员受累,我已经解决了这个问题!请您老把问题放到已解决的问题里边儿
 楼主| 发表于 2009-5-17 14:54:24 | 显示全部楼层
解决了,加了个sleep
发表于 2009-5-17 15:25:19 | 显示全部楼层
本帖最后由 any9988 于 2009-5-17 15:27 编辑
        $lnk="C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch"
        $ie=@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"
        $url="http://www.hao123.com"
$asp=FileGetShortcut($lnk & "启动 Internet Explorer 浏览器.lnk")
        if $asp[2] <> $url Then
                FileCreateShortcut($ie, $lnk & "\启动 Internet Explorer 浏览器","", $url, "")
        EndIf
发表于 2009-5-17 15:27:16 | 显示全部楼层
完全可以考虑直接写入一个快捷方式。
 楼主| 发表于 2009-5-31 12:38:51 | 显示全部楼层
怎么设置问题的状态啊?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 03:15 , Processed in 0.076666 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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