已解决,不好意思#include <GuiDateTimePicker.au3>
$ReportGUI = GUICreate('时间选择', 200, 100, 300, 300)
$Group1_4 = _GUICtrlDTP_Create($ReportGUI, 20, 20, 150, 25, $DTS_TIMEFORMAT)
_GUICtrlDTP_SetFormat($Group1_4, 'hh:mm')
$bt = GUICtrlCreateButton('读取', 20, 50, 60, 20)
Local $a[7] = [False,2011,1,10,23,00,56]
GUISetState(@SW_SHOW)
While 1
$Msg = GUIGetMsg()
Select
Case $Msg = -3
Exit
Case $Msg = $bt
$aDate = _GUICtrlDTP_GetSystemTime($Group1_4)
MsgBox(0, '', StringFormat('%02d:%02d', $aDate[3], $aDate[4]))
_GUICtrlDTP_SetSystemTime($Group1_4, $a)
EndSelect
WEnd
|