SunProud

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

今天学习了python autopy

主要包括alert,color,mouse,key,bitmap,screen等的操作

文档在http://www.autopy.org/documentation/api-reference/

下好包

简单功能

提示框

import autopy

autopy.alert.alert('hello world')

鼠标

from autopy import mouse

mouse.move(1,1)
mouse.click(mouse.LEFT_BUTTON)

键盘 敲左箭头

from autopy import key

key.tap(key.KEY_LEFT)

截屏

import autopy

autopy.bitmap.capture_screen().save('screen.png')

 

 

posted on 2013-10-25 15:58  SunProud  阅读(1544)  评论(0编辑  收藏  举报