Reputation: 8655
I got a bot in Python that I've made to simulate a player playing a flash web game. The thing is, I've used an approach that requires specific screen coordinates to work, and there is a pop-up I need to click to advance to the next state that seems to appear in random positions every time it shows up.
Do you know how to "detect" where the popup is?.
Thanks.
Upvotes: 0
Views: 268
Reputation: 1102
I'd try saving the button you have to click as a pic, then scan your entire screen and use PIL to match the pic you saved to the button you have to press; from there you should be able to retrieve the coordinates.
Upvotes: 1