|
#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("虚拟遥控器", 448, 657, 334, 207) $MenuItem1 = GUICtrlCreateMenu("设备") $MenuItem2 = GUICtrlCreateMenuItem("连接", $MenuItem1) $MenuItem3 = GUICtrlCreateMenu("控制") $MenuItem4 = GUICtrlCreateMenuItem("发送文本", $MenuItem3) $MenuItem5 = GUICtrlCreateMenuItem("发送键值", $MenuItem3) $Pic1 = GUICtrlCreatePic("C:\Users\Administrator\Desktop\ykq.jpg", 8, 8, 209, 593) $Combo1 = GUICtrlCreateCombo("Combo1", 232, 32, 137, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) $Label1 = GUICtrlCreateLabel("设备:", 232, 8, 40, 17) $Input1 = GUICtrlCreateInput("Input1", 232, 88, 121, 21) $Label2 = GUICtrlCreateLabel("文本:", 232, 72, 40, 17) $Label3 = GUICtrlCreateLabel("键值:", 237, 123, 40, 17) $Input2 = GUICtrlCreateInput("Input1", 229, 147, 121, 21) $Button1 = GUICtrlCreateButton("刷 新", 376, 32, 49, 25) $Button2 = GUICtrlCreateButton("发 送", 373, 91, 49, 25) $Button3 = GUICtrlCreateButton("发 送", 373, 147, 49, 25) $Group1 = GUICtrlCreateGroup("", 40, 56, 57, 25) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlSetCursor (-1, 0) $Label4 = GUICtrlCreateLabel(" ", 124, 80, 62, 24, BitOR($SS_BLACKRECT,$SS_NOPREFIX,$WS_BORDER,$WS_CLIPSIBLINGS)) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Pic1 EndSwitch WEnd |
|