How We Built Screen-Based Automation for Last War on Windows
说明与用途
Last War Botu 是一款独立的 Windows 工具,通过截图、模板匹配和土耳其语 OCR 自动执行《Last War: Survival》中的任务,支持多种分辨率并提供安全控制。
问题
Creating a screen‑based automation tool for the PC client of Last War: Survival that works across different resolutions, scaling, and window states without modifying game memory or files.
结果
The tool successfully automates in‑game tasks across supported resolutions (1920×1080, 1366×768, 1920×1057, 150% scaling) while avoiding prohibited actions and providing user controls for safety.
工作流
- 1. Verify game window is full screen or maximized and in front.
- 2. Capture a screenshot of the current screen.
- 3. Use template matching to locate UI elements (buttons, icons).
- 4. Apply Turkish OCR to read text labels for ambiguous controls.
- 5. Decide action based on task logic (e.g., collect rewards, avoid "Go" button).
- 6. Perform randomized delays and wait for squad status before next click.
- 7. Monitor for stuck state, allow emergency stop, or observe mode.
- 8. Repeat for scheduled tasks or continuous operation.
证据
Last War Botu is an independent, third‑party automation tool for Last War: Survival. It runs on Windows 10/11 with the game’s official PC client. An emulator is not required.
Live checks cover 1920×1080 and 1366×768. The recorded checks also include a 1920×1057 game window, multiple monitors, and Windows scaling at 150%.
The tool uses randomized delays and waits for an attacking squad. It also has a scheduler, a stuck‑state watchdog, an emergency stop control, and a mode that observes without clicking.
- 记录日期: 2026-10-21T09:56:29.507Z