Hallo Forum,
dies ist mein erster Einsatz von AutoIT und auch mein erster Post in diesem Forum.
Ich möchte eine GUI erstellen von der aus man Untermenüs (weitere Fenster) öffnen kann (dass öffnen funktioniert auch ohne Problem).
Will ich dann jdeoch aus diesem Untermenü mittels OK oder Abbrechen wieder ins Hauptmenü wechseln passiert nichts.
Sourcecode
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <IPAddressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GUiIPAddress.au3>
#Region ### START Koda GUI section ### Form=
$Main_form = GUICreate("Recovery GUI", 523, 225, 389, 151)
$Label1 = GUICtrlCreateLabel("IP Adresse:", 24, 72, 116, 33)
GUICtrlSetFont(-1, 18, 400, 0, "Candara")
$button_Shutdown = GUICtrlCreateButton("Shutdown", 440, 192, 65, 25)
$button_IP_Adress = GUICtrlCreateButton("IP Adresse manuell setzen", 8, 192, 193, 25, 0)
$button_Tools = GUICtrlCreateButton("Tools", 336, 192, 81, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=c:\programme\autoit3\scripts\forms\change_ip_form.kxf
$change_IP_form = GUICreate("manuelles ändern der IP-Adresse", 374, 204, 356, 309)
$Label1 = GUICtrlCreateLabel("IP-Adresse:", 64, 40, 58, 17)
$Label2 = GUICtrlCreateLabel("Netzwerkmaske:", 39, 84, 83, 17)
$Label3 = GUICtrlCreateLabel("Gatwayadresse:", 42, 128, 80, 17)
$IP_Address = _GUICtrlIpAddress_Create($change_IP_form, 160, 40, 177, 25)
_GUICtrlIpAddress_Set($IP_Address, "0.0.0.0")
$IP_Networkmask = _GUICtrlIpAddress_Create($change_IP_form, 160, 80, 177, 25)
_GUICtrlIpAddress_Set($IP_Networkmask, "0.0.0.0")
$IP_gatwayadress = _GUICtrlIpAddress_Create($change_IP_form, 160, 120, 177, 25)
_GUICtrlIpAddress_Set($IP_gatwayadress, "0.0.0.0")
$Button_OK = GUICtrlCreateButton("OK", 280, 168, 57, 25, 0)
$Button_Abbrechen = GUICtrlCreateButton("Abbrechen", 200, 168, 65, 25, 0)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=C:\Programme\AutoIt3\Scripts\Forms\tools_form.kxf
$tools = GUICreate("Tools", 374, 204, 356, 309)
$Button_OK = GUICtrlCreateButton("OK", 280, 168, 57, 25, 0)
$Button_Abbrechen = GUICtrlCreateButton("Abbrechen", 200, 168, 65, 25, 0)
$button_tc = GUICtrlCreateButton("Total Commander", 24, 32, 305, 33, 0)
$Button_cmd = GUICtrlCreateButton("Command Line", 24, 72, 305, 33, 0)
$Button_voltab = GUICtrlCreateButton("VOLTAB editieren", 24, 112, 305, 33, 0)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $button_Shutdown Or $nMsg = $GUI_EVENT_CLOSE
ExitLoop
Case $nMsg = $button_IP_Adress
GUISetState(@SW_SHOW, $change_IP_form)
Case $nMsg = $button_Tools
GUISetState(@SW_SHOW, $tools)
Case $nMsg = $Button_OK
GUISetState(@sw_disable,$change_IP_form)
Case $nMsg = $Button_Abbrechen
GUISetState(@sw_disable,$change_IP_form)
EndSelect
WEnd
wo liegt mein Denkproblem?
AutoIt Version 3.3.0.0
Gruß
Vope