das geht wie sonst auch immer, Guictrlread und Guictrlsetdata
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
;------------------------------------------------------------------------------------------------------------------
$Form1 = GUICreate("Form1", 183, 139, 192, 124)
$Input1 = GUICtrlCreateInput("", 32, 8, 121, 21)
$Input2 = GUICtrlCreateInput("", 32, 40, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 40, 80, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
;------------------------------------------------------------------------------------------------------------------
$Form2 = GUICreate("Form1", 405, 294, 352, 236)
$Edit1 = GUICtrlCreateEdit("", 16, 16, 361, 241)
GUICtrlSetData(-1, "")
GUISetState(@SW_HIDE)
;######################################################################
While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[1] ; window-handle
Case $Form1 ;hier kommt alles zur 1ten gui rein
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_HIDE, $Form1);frmMain->visible = false
GUICtrlSetData($Edit1, guictrlread($Input1) & @CRLF & GUICtrlRead($Input2))
GUISetState(@SW_SHOW, $Form2);frmInfo->visible = true
EndSwitch
Case $Form2 ; hier kommt alles zur 3ten gui rein
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_SHOW, $Form1) ;frmMain->visible = true
GUISetState(@SW_HIDE, $Form2) ;frmInfo->visible = false
EndSwitch
EndSwitch
WEnd