Is there a pre-built function for repeating a section of the script?
I have looked through and all I have seen is a prebuilt function for repeating a single line, but not several...
Repeat / loop command?
Started by
WifiHero
, Jun 06 2008 09:12 AM
2 replies to this topic
#1
Posted 06 June 2008 - 09:12 AM
#2
Posted 06 June 2008 - 09:19 AM
Try the autoit help file for
'while'
'for'
'do'
An example to loop a set of lines 10 times
'while'
'for'
'do'
An example to loop a set of lines 10 times
Dim $count = 0 Do MsgBox (64, "Loop", "This message will appear 10 times!") ;This is the end of the loop, we have to keep count so the 'do' function knows when to stop! $count += 1 Until $count = 10
#3
Posted 06 June 2008 - 09:20 AM
Whats wrong with FOR and WHILE? You can just put 1 line of code in the loop???
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





