82809085 发表于 2008-10-10 00:33:35

怎么获取config里的文字信息

#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

2=wzas

liongodmien 发表于 2008-10-10 07:10:46

改:
$1=@Scriptdir&"config.ini"
为:
$1=@Scriptdir&"\config.ini"

78391493 发表于 2008-10-10 09:30:30

$1= @ Scriptdir&"\config.ini";有个/漏掉了
IniWrite;写入Ini
IniRead;读取Ini
页: [1]
查看完整版本: 怎么获取config里的文字信息