en resumen, necesito un código que haga que el programa vuelava a una acción anterior. Por ejemplo:
Código: Seleccionar todo
If $caso=1 Then ;menu
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\usuario\desktop\forms\form3.kxf
$Form3 = GUICreate("Menu", 292, 261, 192, 124)
$Button1 = GUICtrlCreateButton("Siguiente", 24, 48, 227, 25)
While 1
	$msg = GUIGetMsg()
	Select
		Case $msg = $GUI_EVENt_CLOSE
			Exit
		Case $msg = $Button1
				$caso=2
				GUIDelete();    
				ExitLoop
	EndSelect
WEnd
EndIf
If $caso=2 Then ;ventana2
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\usuario\desktop\forms\form3.kxf
$Form3 = GUICreate("Ventana2", 292, 261, 192, 124)
$Button1 = GUICtrlCreateButton("Volver al menu", 24, 48, 227, 25)
While 1
	$msg = GUIGetMsg()
	Select
		Case $msg = $GUI_EVENT_CLOSE
			Exit
		Case $msg = $Button1
				$caso=1
				GUIDelete();    
				ExitLoop
	EndSelect
WEnd
EndIf