❶ 【按鍵精靈】配置文件怎麼寫
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)="做任務"Then
Call做任務
ElseIf任務(i)="打怪"Then
Call打怪
EndIf
Next
Sub打怪
EndSub
Sub做任務
EndSub