python程序为我玩Flash游戏 [英] python program that plays flash games for me
问题描述
是的,这是我需要实现,不要问为什么:)
所以,因为这主要是操作系统相关的东西,我会使用Windows或Linux(任何简单)
每秒我的程序将:
1.做屏幕截图,分析板和其他东西(这我可以做)
2.然后移动鼠标到一些XY,做左键单击
all
我的主要关注点是:是否有任何库捕获屏幕截图,然后在屏幕上的其他位置单击。
Yes, that's what I need to achieve, don't ask why:) So, since this is mainly OS dependent stuff I will be using Windows or Linux (whatever is simpler) Every second my program will: 1. do a screenshot, analyze the board and other stuff (this I can do) 2. then move the mouse to some XY and do a left-click that's all My main concern is: is there any library for capturing screenshots and then left clicking somwhere on the screen?
推荐答案
我之前做过这件事 - 使用PIL获取屏幕截图,并使用pywinauto生成鼠标点击。
I've done this very thing before - use PIL to get the screenshots, and pywinauto to generate the mouse clicks.
这篇关于python程序为我玩Flash游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!