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

怎么获取config里的文字信息

  [复制链接]
发表于 2008-10-10 00:33:35 | 显示全部楼层 |阅读模式
#include <GUIConstants.au3>
$1=@Scriptdir&"config.ini"
$ok2=IniRead ($1,"1", "2", "" )
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("网吧电影菜单 As制作", 551, 267, 284, 390)
GUISetCursor (2)
GUISetBkColor(0x004477)
$Group1 = GUICtrlCreateGroup("网吧电影菜单系统 请选您要收看的频道", 0, 0, 550, 267)
$Button1 = GUICtrlCreateButton($ok2, 39, 24, 99, 47, 0)
$Button2 = GUICtrlCreateButton("Button2", 215, 24, 99, 47, 0)
$Button3 = GUICtrlCreateButton("Button3", 383, 24, 99, 47, 0)
$Button4 = GUICtrlCreateButton("Button4", 40, 113, 99, 47, 0)
$Button5 = GUICtrlCreateButton("Button5", 216, 113, 99, 47, 0)
$Button6 = GUICtrlCreateButton("Button6", 384, 112, 99, 49, 0)
$Button7 = GUICtrlCreateButton("Button7", 40, 200, 91, 49, 0)
$Button8 = GUICtrlCreateButton("Button8", 208, 200, 99, 49, 0)
$Button9 = GUICtrlCreateButton("Button9", 384, 200, 99, 49, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

EndSwitch
WEnd
$Button1 = GUICtrlCreateButton($ok2
这里怎么获取config里的相关文字信息?

config.ini
[1]
2=wzas
发表于 2008-10-10 07:10:46 | 显示全部楼层
改:
$1=@Scriptdir&"config.ini"
为:
$1=@Scriptdir&"\config.ini"
发表于 2008-10-10 09:30:30 | 显示全部楼层
$1= @ Scriptdir&"\config.ini";有个/漏掉了
IniWrite;写入Ini
IniRead;读取Ini
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-7 03:54 , Processed in 0.086799 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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