public override void Tick(Bitmap viewportCapture, RECT viewportRect) { var list = GetArenaPlayerOCRResults(viewportCapture, viewportRect); var idx = GetArenaPlayerIndex(list); logTools.Info("Player Index: " + idx + (idx == -1 ? "(Not Found)" : "")); if (idx != -1) { MumuState.ClickArenaPlayer(viewportRect, idx); var res = list[idx]; throw new BreakException($"已找到目标玩家 名字:{res.Name} 排名:{res.Rank}, 脚本终止"); } else { MumuState.ClickArenaRefresh(viewportRect); } }