[Common]
Description=INI读写
HotKeyStart=119
HotKeyStop=122
Enabled=0
RunOnce=1

[Script]
//可使用下面的四条语句对符合INI配置文件格式的纯文本文件进行读写
//打开一个空白的Notepad窗口，按下热键启动脚本观察结果
//此脚本将会在当前程序目录下自动生成1.ini文件
var i=0
var s=""
var f=0
Main:
do writeIntegerToIniFile("1.ini","common","I1",134)
do WriteStringToIniFile("1.ini","common","I2","test")
do WriteFloatToIniFile("1.ini","common","I3",100.22)
set i=ReadIntegerFromIniFile("1.ini","common","I1",1)
set s=ReadStringFromIniFile("1.ini","common","I2","2")
set f=ReadFloatFromIniFile("1.ini","common","I3",0.11)
output i
Key Press 13 1
output s
Key Press 13 1
output f
EndMain
