【问题标题】:Try and catch alternative尝试并抓住替代品
【发布时间】:2016-09-28 13:31:57
【问题描述】:

在 AutoIt 中是否有替代 Try and Catch 的方法?不知道有没有类似的。

【问题讨论】:

    标签: error-handling try-catch autoit


    【解决方案1】:

    AutoIt 中不存在 try-catch-construct。你必须使用the @error macro:

    call_your_function_here()
    If @error Then
        ;do your error stuff
    Else
        ;do your program stuff
    EndIf
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-25
      • 1970-01-01
      • 2011-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多