How We Built Screen-Based Automation for Last War on Windows
Description and use
Last War Botu is a standalone Windows tool that automates tasks in Last War: Survival by using screenshots, template matching, and Turkish OCR, supporting multiple resolutions and providing safety controls.
Problem
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.
Outcome
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.
Workflow
- 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.
Evidence
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.
- Record date: 2026-10-21T09:56:29.507Z