03-09-2024, 05:06 AM
Your code can be optimized to eat less CPU.
1. Remove the 1 from Find(1).
2. Search in a smaller area, not in entire window. Find that area (a parent or ancestor UI element of the wanted element) at the start, and later search in it.
1. Remove the 1 from Find(1).
2. Search in a smaller area, not in entire window. Find that area (a parent or ancestor UI element of the wanted element) at the start, and later search in it.