Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 Python 制作了一个机器人,用来模拟玩 Flash 网页游戏的玩家。问题是,我使用了一种需要特定屏幕坐标才能工作的方法,并且有一个弹出窗口我需要单击以前进到下一个状态,该状态似乎每次出现时都会出现在随机位置。
你知道如何“检测”弹出窗口的位置吗?
谢谢。
我会尝试将您必须单击的按钮保存为图片,然后扫描整个屏幕并使用 PIL 将您保存的图片与您必须按下的按钮相匹配;从那里你应该能够检索坐标。