Wie macht man bei AutoIt eine Schleife? Bei VBS muss man an den Anfang do und ans Ende loop schreiben. Geht das mit AutoIt auch so ähnlich?
Endlosschleife
-
- [ gelöst ]
-
anfänger123456 -
20. Juli 2009 um 17:31 -
Geschlossen -
Erledigt
-
-
- Offizieller Beitrag
Bitte in der Hilfe gucken, es gibt auch eine deutsche Hilfe.
-
Ich habe hier geschaut:
http://www.autoit.de/dokumentation_…/lang_loops.htm
Aber ich weiß nicht, welche Schleife davon die ist, die unendlich lang weitergeht (bis das Script beendet wird). Bitte helft mir. -
While...WEnd
--------------------------------------------------------------------------------Loop based on an expression.
While <expression>
statements
...
WEndParameters
expression If the expression is true the following statements up to the WEnd statement are executed. This loop continues until the expression is false.
Remarks
While...WEnd statements may be nested.
The expression is tested before the loop is executed so the loop will be executed zero or more times.
To create an infinite loop, you can use a non-zero number as the expression.Related
ContinueLoop, Do...Until, ExitLoop
Example
$i = 0
While $i <= 10
MsgBox(0, "Value of $i is:", $i)
$i = $i + 1
WEndWenn Du ne endlos Schleife willst,
dann
while 1
...
WEnd
-
Danke!