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

怎么样这程序循环!?

[复制链接]
发表于 2009-8-23 13:24:17 | 显示全部楼层 |阅读模式
本帖最后由 rojie3698 于 2009-8-24 13:20 编辑

#NoTrayIcon

WinWaitActive("土豆网","http://www.tudou.com")
WinClose("土豆网","http://www.tudou.com")

Sleep(1000)

Run(@ComSpec & ' /c start http://www.baidu.com,"", @SW_HIDE)


想让程序一直在运行住,怎么搞,用什么语句? 现在有效次数 只有一次。哪位兄弟懂的指点一下小弟
谢谢了。
发表于 2009-8-23 13:34:21 | 显示全部楼层
    典型的拿来主义.

提示一下.  看一下 While ...  WEnd  语句的用法.    套在里面就能实现你所要的功能.
发表于 2009-8-23 13:41:14 | 显示全部楼层
本帖最后由 tnt844 于 2009-8-23 13:42 编辑

楼主用AdlibEnable命令如何?可以在帮助文档里找它的格式。比如你参考这个小代码看看自己改成吗。每隔300MS运行一次KillProcess函数。
AdlibEnable("KillProcess","300")
 Func KillProcess() 
If ProcessExists("360se.exe") Then
ProcessClose("360se.exe")
EndIf 
If ProcessExists("iexplore.exe") Then
ProcessClose("iexplore.exe")
EndIf 
If ProcessExists("theworld.exe") Then
ProcessClose("theworld.exe")
EndIf 
EndFunc;--------猎杀进程--------

评分

参与人数 1金钱 +5 收起 理由
afan + 5

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-17 18:35 , Processed in 0.079428 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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