#include <GUIConstantsEx.au3>
$Form1 = GUICreate("Win1", 437, 118, 214, 258)
$Input1 = GUICtrlCreateInput("", 16, 48, 385, 21)
GUISetState(@SW_SHOW)
While 1
$cgt = GUICtrlRead($Input1)
If Not $cgt = 0 Then ControlSetText('Win2', '', 'Edit1', $cgt)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd