Jump to content

nanyi0509

Members
  • Posts

    2
  • Joined

  • Last visited

nanyi0509's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello,Zodiak There is a simaple example: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 225, 158, 192, 124) $Input1 = GUICtrlCreateInput("", 32, 24, 153, 21) $BtnClean = GUICtrlCreateButton("Clean", 64, 80, 81, 33, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $BtnClean GUICtrlSetData($Input1,"") EndSwitch WEnd
  2. #NoTrayIcon #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 295, 175, 192, 124) $Input1 = GUICtrlCreateInput("", 64, 32, 177, 21) $Input2 = GUICtrlCreateInput("", 62, 77, 177, 21) $Button1 = GUICtrlCreateButton("Field Values", 104, 112, 81, 33, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 MsgBox(0,"Field Values","Input 1:"& GUICtrlRead($Input1) & @CRLF & "Input 2: " & GUICtrlRead($Input2)) EndSwitch If GUICtrlRead($Input1)<>"" Then GUICtrlSetData($Input2,GUICtrlRead($Input1)) WEnd
×
×
  • Create New...