❶ 【按键精灵】配置文件怎么写
Call Plugin.File.WriteINI("Command", "Val", "内容", "C:\Config.ini")Call Plugin.File.WriteINI("Command", "Val2", "内容2", "C:\Config.ini")Call Plugin.File.WriteINI("Command", "Val3", "内容.", "C:\Config.ini")Call Plugin.File.WriteINI("Command2", "Val", "内容", "C:\Config.ini")Call Plugin.File.WriteINI("Command2", "Val2", "内容2", "C:\Config.ini")Call Plugin.File.WriteINI("Command2", "Val3", "内容3", "C:\Config.ini")
❷ 按键精灵读取配置文件,运行子程序
用子程序传参.
上面Call 任务(i)这个是对的.
但是下面的子程序 任务1 后面的数字1是作为名称不是参数,所以它不会运行.应该:
任务=Plugin.File.ReadINI("rw","rw","c:配置.ini")任务=split(任务,"|")Fori=0ToUBound(任务)If任务(i)="做任务"ThenCall做任务ElseIf任务(i)="打怪"ThenCall打怪EndIfNextSub打怪EndSubSub做任务EndSub