找回密码
 加入
搜索
查看: 2739|回复: 4

AU3如何读取.ini配置

[复制链接]
发表于 2008-7-31 23:35:14 | 显示全部楼层 |阅读模式
大家好 我很想学AU3  。请问下。要让他自动读取 后缀名为 ini 的配置文件 里面的的命令

要如何写啊。 这个问题困扰了我很久。 希望高手们给个例子` 谢谢

[ 本帖最后由 hbl512 于 2008-7-31 23:42 编辑 ]
发表于 2008-8-1 02:57:57 | 显示全部楼层
在帮助里搜索代码iniread

其他的都很明了了。
发表于 2008-10-6 16:14:08 | 显示全部楼层

我是菜鸟,是刚接触,

#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("日志工具", 615, 632, 193, 115)
$Group1 = GUICtrlCreateGroup("日志", 0, 40, 609, 585)
$Edit1 = GUICtrlCreateEdit("", 8, 64, 593, 553)
GUICtrlSetData(-1, "请在这里写下你的人生历程。。。")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("写日志", 8, 8, 75, 25, 0)
$Button2 = GUICtrlCreateButton("读日志", 528, 8, 75, 25, 0)
$Button3 = GUICtrlCreateButton("清空", 400, 8, 75, 25, 0)
$Date1 = GUICtrlCreateDate("2008/10/06 14:44:27", 100, 8, 186, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

                Case $Form1
        Case $Button1
                IniWrite("Date\blog.dat","blog","日志",GUICtrlRead($Edit1))
                msgbox(64,"提示","记录成功")
        case $Button2
                Dim $var
                $var=IniRead("Date\blog.dat","blog","日志","0")
            MsgBox(64,"提示","读取成功:"&$var)
        Case $Button3
       
        EndSwitch
WEnd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-7-23 09:52:52 | 显示全部楼层
顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下
发表于 2010-7-23 11:02:08 | 显示全部楼层
顶一下顶一下顶一下顶一下顶一下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 01:02 , Processed in 0.087677 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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