Skip to content

This is a proxy to robot.js "Node.js Desktop Automation. "

License

Notifications You must be signed in to change notification settings

jonasfrey/robotjs_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robotjs from deno

how it works

  1. uses the https://deno.land/x/node_command module!

requirements

  • node
  • npm
  • node module 'robotjs'

usage

import

import {
    o_robot_js
} from "./mod.js"

available functions (can change depending on node module version)

// "dragMouse",         "updateScreenMetrics",
// "moveMouse",         "moveMouseSmooth",
// "getMousePos",       "mouseClick",
// "mouseToggle",       "scrollMouse",
// "setMouseDelay",     "keyTap",
// "keyToggle",         "typeString",
// "typeStringDelayed", "setKeyboardDelay",
// "getPixelColor",     "getScreenSize",
// "captureScreen",     "getColor",
// "getXDisplayName",   "setXDisplayName",
// "screen"

call a robotjs function

console.log(o_robot_js);
await o_robot_js.moveMouseSmooth(1200,1200)
console.log(await o_robot_js.getXDisplayName())
console.log(await o_robot_js.typeString('hello lol'))

About

This is a proxy to robot.js "Node.js Desktop Automation. "

Resources

License

Stars

Watchers

Forks

Packages

No packages published