variable in schleife

  • hi,
    ich bin noch neu und bekomm diesen script nicht hin

    Spoiler anzeigen

    $wort = InputBox ("test", "Satz oder Wort")
    $anzahl = InputBox ("test", "Anzahl")

    $anzahl = For $count = 1 To $anzahl
    $wort = send ( $wort )

    wenn ich den script aktiviere klappt alles auser die schleife
    wo liegt der fehler?

  • [autoit]

    $wort = InputBox ("test", "Satz oder Wort")
    $anzahl = InputBox ("test", "Anzahl")

    [/autoit][autoit][/autoit][autoit]

    For $count = 1 To $anzahl
    send ($wort)
    Next

    [/autoit]

    So bitte ;)
    Wenn du logisch nachdenkst, sollte die klar sein, warum "$anzahl = For $count = 1 To $anzahl" nicht funktioniert. Solltest du es noch nicht getan haben, lies dir bitte das Tutorial von AutoIt.de durch. :)