【问题标题】:How do you add add commands after a loop Breaks?如何在循环中断后添加添加命令?
【发布时间】:2013-08-23 07:26:33
【问题描述】:

我正在运行一个循环,在循环中间我有命令

IfInString, Clipboard, Stop
  Break

在此之后我将如何发出命令?在正文之后添加文本不起作用。我对自动热键很陌生。

【问题讨论】:

    标签: clipboard autohotkey break


    【解决方案1】:

    LoopBreak 内部被命中时,代码执行将直接转到循环之外的代码。

    Loop
    {
        IfInString, Clipboard, Stop
            Break
        /*
        Some other stuff could be here,
        but this does not run if the break is hit
        */
    }
    ; Code execution continues here
    Msgbox, Stop was found in the clipboard
    

    【讨论】:

    • 你已经讲述了一切,就像它发生的一样!这是正确的。
    猜你喜欢
    • 2020-11-29
    • 1970-01-01
    • 2019-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-30
    • 1970-01-01
    相关资源
    最近更新 更多