找回密码
 加入
搜索
查看: 1544|回复: 1

[AU3基础] 大家帮帮手.求某段时间内每周三的日期,怎样实现

[复制链接]
发表于 2012-1-19 23:59:07 | 显示全部楼层 |阅读模式
做了简单的UI,日期可让用户自己选择.在该时间范围中每周三的日期在编辑框里显示出来
#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 394, 442, 192, 124)
$Label1 = GUICtrlCreateLabel("至", 184, 32, 20, 17)
$Button1 = GUICtrlCreateButton("输出", 152, 72, 75, 25)
$Edit1 = GUICtrlCreateEdit("", 24, 120, 345, 257)
GUICtrlSetData(-1, "")
$Date1 = GUICtrlCreateDate("", 16, 24, 154, 21)
$Date2 = GUICtrlCreateDate("", 216, 24, 154, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        day()
        EndSwitch
WEnd
 楼主| 发表于 2012-1-20 13:44:16 | 显示全部楼层
求指导。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-20 18:30 , Processed in 0.106356 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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