While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitLoop
Case $start
While 1
For $i = 1 To $var1[0][0]
For $j = 1 To $var2[0][0]
ContinueLoop
next
next
case $stop
exitloop
WEnd
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitLoop
Case $start
While 1
For $i = 1 To $var1[0][0]
For $j = 1 To $var2[0][0]
If GUIGetMsg() = $stop Then ExitLoop 3
;.......
Next
Next
WEnd
EndSwitch
WEnd