Until - Syntax & Usage - AutoHotkey
文章推薦指數: 80 %
The Until statement applies a condition to the continuation of a Loop or For-loop. Until[AHK_L59+] AppliesaconditiontothecontinuationofaLooporFor-loop. Loop{ ... }UntilExpression Parameters Expression Anyvalidexpression. Remarks Theexpressionisevaluatedonceaftereachiteration,andisevaluatedevenifcontinuewasused.Iftheexpressionevaluatestofalse(whichisanemptystringorthenumber0),theloopcontinues;otherwise,theloopisbrokenandexecutioncontinuesatthelinefollowingUntil. LoopUntilisshorthandforthefollowing: Loop{ ... if(Expression) break } However,LoopUntilisofteneasiertounderstandandunliketheabove,canbeusedwithasingle-lineaction.Forexample: Loop x*=2 Untilx>y UntilcanbeusedwithanyLooporFor.Forexample: Loop,Read,%A_ScriptFullPath% lines.=A_LoopReadLine."`n" UntilA_Index=5;Readthefirstfivelines. MsgBox%lines IfA_IndexisusedinExpression,itcontainstheindexoftheiterationwhichhasjustfinished. Related Loop,While-loop,For-loop,Break,Continue,Blocks,Files-and-foldersloop,Registryloop,File-readingloop,Parsingloop,If(expression)
延伸文章資訊
- 1AutoHotKey while loop breaks - Stack Overflow
Every few uses the while loop breaks and keeps spamming forever until i press the bind again. aut...
- 2Simple Until Loop - AutoHotkey Community
Loop Until not triggering - AutoHotkey Community
- 3loop until - Ask for Help - AutoHotkey Community
loop until - posted in Ask for Help: hello! how can I express loop this command, until this expre...
- 4ahk loop Code Example
Loop, 3 { MsgBox, Iteration number is %A_Index%. ; A_Index will be 1, 2, ... ahk loop · for loop ...
- 5loop 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:...