分享

python 模拟键盘鼠标输入

 dinghj 2014-03-16

最近需要模拟键盘鼠标的输入,一番查找之后,得到的一些结果


************************************************************************************************************************

pyUserInput,可以模拟键盘鼠标,功能很全,用起来很方便

https://github.com/SavinaRoja/PyUserInput/wiki/Installation


需要同时安装pyhook


这是其中pyMouse的一个例子

from pymouse import PyMouse

m = PyMouse()
m.position() #gets mouse current position coordinates
m.move(x,y)
m.click(x,y) #the third argument "1" represents the mouse button
m.press(x,y) #mouse button press
m.release(x,y) #mouse button release

************************************************************************************************************************

http://www./

eventGhost


************************************************************************************************************************

SendKeys



python 也有自己的SendKeys模块


************************************************************************************************************************


http:///questions/11906925/python-simulate-keydown

各种模拟key的方法

提到了direct input








    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多