robot-cmd

Automatically operate the keyboard and mouse, do not need gyp


Keywords
robot, powershell, mouse, keyboard
License
ISC
Install
npm install robot-cmd@1.0.6

Documentation

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.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