#include <GUIConstantsEx.au3> #include <DateTimeConstants.au3> Local $n, $msg GUICreate("My GUI get time", 200, 200, 800, 200) $n = GUICtrlCreateDate("", 20, 20, 100, 20, $DTS_TIMEFORMAT) GUICtrlSetData($n,@HOUR&":"&@MIN&":"&@SEC&" 23:59:38");;;;;;;;;修改时间为23:59:38 GUISetState() ; 运行界面,直到窗口被关闭 Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE MsgBox(4096, "Time", GUICtrlRead($n)) GUIDelete()
举报
GUICtrlSetData($n, '2016/01/26 23:59:38')
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-24 10:22 , Processed in 0.068510 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.