本帖最后由 mtvtop 于 2011-10-22 18:01 编辑
Config.ini内容[坐标]
xx=140
yy=140
[分区]
ServerUrl=http://www.baidu.com/
[帐号类型]
AccountType=1
au3内容#include <Array.au3> ;读取ini用的
;读取ini配置文件
$Account = IniReadSection("Config.ini", "坐标") ;读配置文件(*.ini)字段的 账号 与值.
$ServerUrl = IniReadSection("Config.ini", "分区")
$AccountType = IniRead("Config.ini", "帐号类型", "AccountType", "0")
;取出 账号 的值
For $i = 1 To $Account[0][0]
;$comAccount = $comAccount & "|" & $Account[$i][0]
MsgBox(4096, "", "关键字: " & $Account[$i][0] & @CRLF & "值: " & $Account[$i][1])
Next
报错信息
|