#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $hGUI = GUICreate("Копирование областей текста", 500, 600)
Local $idinput1 = GUICtrlCreateEdit ("$idinput1", 0, 0, 500, 200)
Local $idinput2 = GUICtrlCreateEdit ("$idinput2", 0, 250, 500, 200)
Local $idbutton1 = GUICtrlCreateButton("Копия 1 to 2", 20, 500, 85, 25)
Local $idbutton2 = GUICtrlCreateButton("Копия 2 to 1", 220, 500, 85, 25)
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $idbutton1
GUICtrlSetData($idinput2,GUICtrlRead($idinput1))
Case $idbutton2
GUICtrlSetData($idinput1,GUICtrlRead($idinput2))
EndSwitch
WEnd
|