Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 547 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 547 Bytes

robot-cmd

Automatically operate the keyboard and mouse, do not need gyp.

Example

const robot = require('robot-cmd')

robot.moveTo(100,100)
robot.leftClick()
robot.leftDown()
robot.leftUp()
robot.doubleClick()
robot.rightClick()
robot.rightDown()
robot.rightUp()
robot.wheelDown()
robot.wheelUp()
robot.screenShot('./screenshot.png')
robot.sendKeys('S D F G H {ENTER}')

robot.gif