找回密码
 加入
搜索
查看: 2186|回复: 6

[IE类操作] [已解决]AU3没有跳转语句吗?

  [复制链接]
发表于 2010-7-11 19:30:10 | 显示全部楼层 |阅读模式
本帖最后由 nofile 于 2010-7-13 02:53 编辑

头大。。。是不是我没找到还是怎么。。

评分

参与人数 1金钱 +10 收起 理由
afan + 10 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

发表于 2010-7-12 12:43:46 | 显示全部楼层
Runs()

Func Runs()
        If MsgBox(4,"跳转演示","跳转吗")=6 Then
                jamp()
        Else
                MsgBox(0,0,"未跳转")
        EndIf
EndFunc

Func jamp()
        MsgBox(0,"已经跳转","已经跳转")
EndFunc

评分

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

查看全部评分

发表于 2010-7-12 13:06:22 | 显示全部楼层
本帖最后由 shypro2009 于 2010-7-12 13:08 编辑

v3应该没有:参见AutoIT help 文档 的FAQ


下文大意就是开发组觉得 goto 很邪恶,所以xx了,而且你不能问为什么。

4. Where is the "goto" command?
Gone.  It's evil.  No, you can't ask why - it just is.  It's like that lump of rock they find in the microwave at the end of the film Time Bandits :)



AutoIt v3 features most of the common "loops" in use today and with these Goto is no longer required.  Look up While, Do, For, ExitLoop, ContinueLoop and Functions for the modern way of doing things :)  And while you are looking at help file sections check out these on loops, conditional statements and functions.  I promise you, once you have got the hang of such things you will be able to script in virtually any other language within a couple of minutes.



Just to get you started, the most basic use of Goto in version 2.64 was an infinite loop like:

:mylabel
...do something...
...and something else...
goto, mylabel


A simple v3 version of that is a While loop that is always "true".

While 1 = 1
   ...do something...
   ...do something else...
Wend




Back To Top

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×

评分

参与人数 1金钱 +10 收起 理由
nofile + 10

查看全部评分

发表于 2010-7-12 14:35:29 | 显示全部楼层
func我感觉比GOTO要好的多。
发表于 2010-7-13 11:06:41 | 显示全部楼层
GOTO是没的,,用FUNC不挺好的嘛。。
发表于 2010-7-13 11:12:56 | 显示全部楼层
多看帮助?最好的工具!
发表于 2010-9-5 22:18:02 | 显示全部楼层
2楼能不能解释一下跳转语句的用法及其格式?

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

本版积分规则

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

GMT+8, 2024-10-3 08:28 , Processed in 0.080207 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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