Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

robot-cmd

1.0.6 • Public • Published

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}')

sendKeys() KeyCode Definition at https://technet.microsoft.com/en-us/library/ff731008.aspx?f=255&MSPPError=-2147217396

robot.gif

Install

npm i robot-cmd

DownloadsWeekly Downloads

5

Version

1.0.6

License

ISC

Unpacked Size

342 kB

Total Files

9

Last publish

Collaborators

  • avatar