You can watch the ~6 minute video here and my script (which was built merely to show some of the tools) is below.
I should have prefaced my post with the warning that I am NOT a programmer. I might use incorrect terms here and there and I'm sure there are more elegant ways to demonstrate this but it should suffice for the basics.
Code: Select all
#SingleInstance, Force
#NoEnv
Var:=0
OutputDebug Line %A_LineNumber%: A_Index is: %A_Index% and Var is: %Var%
GoSub Looper
MsgBox end of program
return
;***********************First loop********************************.
Looper:
loop, 15
{
var:=Var+A_Index
OutputDebug Line %A_LineNumber%: A_Index is: %A_Index% and Var is: %Var%
var:=Var+10
GoSub SubLooper
}
return
;***********************Sub loop********************************.
SubLooper:
Loop, 3
{
SubLooperVar:=A_Index
OutputDebug Line %A_LineNumber%: A_Index is: %A_Index% and Var is: %Var% and Sublooper index is: %SubLooperVar%
}
return