Jump to content

Recommended Posts

Posted

I am a newbie and try to do the folowing:

define 3 variables

while var1 

       while var 2

       wend

 

      while var 3

     wend

wend

The programm ignores the outer loop and only runs whatever is in the two inner loops. attached is my script.

 

 

alle_neu.au3

Posted
; Set the Escape hotkey to terminate the script.
HotKeySet("{ESC}", "_Terminate")

$outer = 0
$hyploop = 0
$rest = 0

While $outer < 4

    $hyploop = 0 ; fix: -------------------> added
    $rest = 0 ; fix: -------------------> added

    ConsoleWrite("outer start: " & $outer & @CRLF)

    While $hyploop < 1 ; 17
        ConsoleWrite("hyploop: " & $hyploop & @CRLF)
        $hyploop = $hyploop + 1
    WEnd

    While $rest < 1 ; 21
        ConsoleWrite("rest: " & $rest & @CRLF)
        $rest = $rest + 1
    WEnd

    ConsoleWrite("outer end: " & $outer & @CRLF)
    $outer = $outer + 1
WEnd

Func _Terminate()
    Exit
EndFunc   ;==>_Terminate

 

  • Developers
Posted (edited)

Welcome to the AutoIt forum (again).

Unfortunately you appear to have missed the Forum rules on your way in both in 2015 as now. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...