Nenutz bitte den AutoIt Button für Syntax-Highlighting.
ungefähr so (besser verständlich ohne arrays):
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("", 248, 89, 254, 124)
$Input1 = GUICtrlCreateInput("", 8, 32, 121, 21)
$Input2 = GUICtrlCreateInput("", 8, 32+25, 121, 21)
$Label1 = GUICtrlCreateLabel("bli, bla oder blub?", 8, 8, 87, 17)
$Button1 = GUICtrlCreateButton("los", 144, 32, 75, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_goto()
_goto2()
;~ _goto3() ; usw.
EndSwitch
WEnd
Func _goto()
$read = GUICtrlRead($Input1)
Switch $read
Case "bli"
MsgBox(64, "", "zur Funktion für bli springen")
;_bli()
Case "bla"
MsgBox(64, "", "zur Funktion für bla springen")
;_bla()
Case "blub"
MsgBox(64, "", "zur Funktion für blub springen")
;_blub()
Case Else
MsgBox(64, "", "ungültige Eingabe")
EndSwitch
EndFunc ;==>_goto
Func _goto2()
$read = GUICtrlRead($Input2)
Switch $read
Case "bli"
MsgBox(64, "", "zur Funktion für bli springen")
;_bli()
Case "bla"
MsgBox(64, "", "zur Funktion für bla springen")
;_bla()
Case "blub"
MsgBox(64, "", "zur Funktion für blub springen")
;_blub()
Case Else
MsgBox(64, "", "ungültige Eingabe")
EndSwitch
EndFunc ;==>_goto