hbl512 发表于 2008-7-31 23:35:14

AU3如何读取.ini配置

大家好 我很想学AU3。请问下。要让他自动读取 后缀名为 ini 的配置文件 里面的的命令

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

[ 本帖最后由 hbl512 于 2008-7-31 23:42 编辑 ]

超级死人 发表于 2008-8-1 02:57:57

在帮助里搜索代码iniread

其他的都很明了了。

rl1320 发表于 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

c309701109 发表于 2010-7-23 09:52:52

顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下顶一下

fightsky 发表于 2010-7-23 11:02:08

顶一下顶一下顶一下顶一下顶一下
页: [1]
查看完整版本: AU3如何读取.ini配置