bechtudo Posted September 9, 2020 Posted September 9, 2020 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
Danp2 Posted September 9, 2020 Posted September 9, 2020 You need to reset the two "inner" variables to 0 inside your "outer" script. P.S. What application are you attempting to automate? There are generally more reliable ways to automate than using MouseClick. Latest Webdriver UDF Release Webdriver Wiki FAQs
bechtudo Posted September 9, 2020 Author Posted September 9, 2020 this is all just for mouse clicks to speed up a game I am playing.
Zedna Posted September 9, 2020 Posted September 9, 2020 ; 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 Resources UDF ResourcesEx UDF AutoIt Forum Search
Developers Jos Posted September 9, 2020 Developers Posted September 9, 2020 (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 September 9, 2020 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.
Recommended Posts