#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("测试", 190, 97, 370, 225)
$Label1 = GUICtrlCreateLabel("测试", 8, 8, 136, 17)
$b=GUICtrlCreateCombo("", 8, 32, 81, 25, BitOR(0x0002,$CBS_AUTOHSCROLL,$CBS_SIMPLE))
$Button1 = GUICtrlCreateButton("确定", 112, 32, 57, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
for $a=1 to 80 step 1
if $a<10 Then
$a="0" & $a
EndIf
GUICtrlSetData($b,$a)
Send('{down}')
Next
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|