回复 1# lnlyf
刚说前面一个帖子的,你的这个一样处理方式:
http://www.autoitx.com/thread-29264-1-1.html (三楼说明)
#include <GUIConstantsEx.au3>
#include <DateTimeConstants.au3>
$ReportGUI = GUICreate('设置启动时间', 200, 120, 380, 200)
$n = GUICtrlCreateDate("15:12", 20, 20, 100, 20, $DTS_TIMEFORMAT)
GUICtrlSendMsg($n, $DTM_SETFORMATW, 0, "HH:MM")
$bt = GUICtrlCreateButton('确定', 20, 60, 65, 26)
$Input = GUICtrlRead($n)
$dayqy = StringSplit($Input, ":")
GUISetState()
While 1
$Msg = GUIGetMsg()
Select
Case $Msg = -3
Exit
Case $Msg = $bt
$Input = GUICtrlRead($n)
$dayq = StringSplit($Input, ":")
$aDatepc = $dayq[1]&$dayq[2]
MsgBox(0, '', $aDatepc )
EndSelect
WEnd
|