找回密码
 加入
搜索
查看: 3283|回复: 2

新手的 一个问题 ?

[复制链接]
发表于 2008-5-6 00:53:33 | 显示全部楼层 |阅读模式
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Date.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 197, 117, 193, 125)
$Input1 = GUICtrlCreateInput("", 35, 25, 131, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd


不如我要在打开这个的时候在$Input1这个控件里等到系统时间   怎么写啊

[ 本帖最后由 男孩 于 2008-5-8 13:02 编辑 ]
发表于 2008-5-6 01:37:52 | 显示全部楼层
$Input1 = GUICtrlCreateInput("", 35, 25, 131, 21)
GUICtrlSetData(-1,@HOUR&':'&@MIN&':'&@SEC)

或者
#include <DateTimeConstants.au3>
$Time = GUICtrlCreateDate("", 35, 40, 75, 20,$DTS_TIMEFORMAT)
发表于 2008-5-6 11:22:23 | 显示全部楼层
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Date.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 197, 117, 193, 125)
$Input1 = GUICtrlCreateInput("", 35, 25, 131, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
    Case $GUI_EVENT_CLOSE
              Exit
EndSwitch
GUICtrlSetData($Input1,@HOUR&':'&@MIN&':'&@SEC)
WEnd

是这个效果么
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-27 06:04 , Processed in 0.093253 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表