Until | AutoHotkey
文章推薦指數: 80 %
Until [AHK_L 59+]. 根据条件判断是否继续执行Loop 或For 循环. Loop { ... } Until Expression. 参数. Expression. 任何有效的表达式. 备注. Until[AHK_L59+] 根据条件判断是否继续执行Loop或For循环. Loop{ ... }UntilExpression 参数 Expression 任何有效的表达式. 备注 在每次重复执行后都会计算一次表达式,即使使用了continue也会进行计算.如果表达式计算结果为false(即为空字符串或数值0),循环继续;否则循环被打破且跳到Until之后一行执行. LoopUntil是下列结构的简写形式: Loop{ ... if(Expression) break } 不过,LoopUntil通常更容易理解,且与上面不同的是,它还可以使用单行动作.例如: Loop x*=2 Untilx>y Until可以使用在任何Loop或For循环中.例如: Loop,Read,%A_ScriptFullPath% lines.=A_LoopReadLine."`n" UntilA_Index=5;读取前五行. MsgBox%lines 如果A_Index用在Expression中,那么它的值为刚结束的那次循环的索引. 相关 Loop,While循环,For循环,Break,Continue,区块,文件和文件夹循环,注册表循环,文件读取循环,解析循环,If(表达式)
延伸文章資訊
- 1ahk loop Code Example
Loop, 3 { MsgBox, Iteration number is %A_Index%. ; A_Index will be 1, 2, ... ahk loop · for loop ...
- 2loop until i press a key - Ask for Help - AutoHotkey Community
i really have a problem with this... here's a example: loop { Send, text1{enter} Send, text2 Esc:...
- 3Simple Until Loop - AutoHotkey Community
Loop Until not triggering - AutoHotkey Community
- 4Loop until hotkey released : r/AutoHotkey - Reddit
I want my script to continue looping until I've released the hotkey which triggered it. Any sugge...
- 5AutoHotKey while loop breaks - Stack Overflow
Every few uses the while loop breaks and keeps spamming forever until i press the bind again. aut...