### 1. 在界面中画一个列表框 默认是form1.listbox1,和后面代码中对应  ### 2. 代码 ```lua Event Form1.LoadOver Form1.ListBox1.List = "" End Event LogStart "C:\赛马日志.log" TracePrint "开始" Call 列表框记录 Sub 列表框记录() LogStop 文本 = Plugin.File.ReadFileEx("C:\赛马日志.log") 结果 = Split(文本, "|")(UBound(Split(文本, "|")) - 2) 结果=Replace(结果,chr(13),"-") Form1.ListBox1.AddItem 结果 Form1.ListBox1.ListIndex = Form1.ListBox1.ListCount - 1 End Sub ``` #### 或者 ```lua Event Form1.LoadOver Form1.ListBox1.List = "" End Event LogStart "C:\赛马日志.log" TracePrint "开始" Call 列表框记录("C:\赛马日志.log") Sub 列表框记录(日志路径) LogStop 文本 = Plugin.File.ReadFileEx(日志路径) 结果 = Split(文本, "|")(UBound(Split(文本, "|")) - 2) 结果=Replace(结果,chr(13),"-") Form1.ListBox1.AddItem 结果 Form1.ListBox1.ListIndex = Form1.ListBox1.ListCount - 1 End Sub ``` WMI Scripting HTML 当前访问者IP地址及地址归属: Last modification:June 20th, 2025 at 10:12 am © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments