Local = $hGui, $iLabel1, $iLabel2, $iButton, $iCtrlId
$hGui = GUICreate("")
$iLabel1 = GUICtrlCreateInput("", 10, 10)
$iLabel2 = GUICtrlCreateInput("", 10, 40)
$iCtrlId = $iLabel1
$iButton = GUICtrlCreateButton("Из буфера", 10, 70)
GUISetState()
While 1
$iMsg = GUIGetMsg()
Switch $iMsg
Case $iLabel1, $iLabel2
$iCtrlId = $iMsg
Case $iButton
GUICtrlSetData($iCtrlId, ClipGet( ))
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd