robotjs | Node.js Desktop Automation | Automation library

 by   octalmage C Version: v0.6.0 License: MIT

kandi X-RAY | robotjs Summary

kandi X-RAY | robotjs Summary

robotjs is a C library typically used in Automation, Nodejs, Electron applications. robotjs has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Node.js Desktop Automation. Control the mouse, keyboard, and read the screen. RobotJS supports Mac, Windows, and Linux. This is a work in progress so the exported functions could change at any time before the first stable release (1.0.0). Ideas?.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              robotjs has a medium active ecosystem.
              It has 11728 star(s) with 905 fork(s). There are 208 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 153 open issues and 423 have been closed. On average issues are closed in 265 days. There are 25 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of robotjs is v0.6.0

            kandi-Quality Quality

              robotjs has 0 bugs and 0 code smells.

            kandi-Security Security

              robotjs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              robotjs code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              robotjs is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              robotjs releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of robotjs
            Get all kandi verified functions for this library.

            robotjs Key Features

            No Key Features are available at this moment for robotjs.

            robotjs Examples and Code Snippets

            No Code Snippets are available at this moment for robotjs.

            Community Discussions

            QUESTION

            Is there anything similar to PyAutoGUI for NodeJS that can try to locate an image inside a screen capture?
            Asked 2022-Mar-03 at 06:01

            I am trying to code a bot to automate some tasks on a videogame with JS and Node, so far I've been using RobotJS. The problem I'm facing is that I need to find something on the screen as it moves from time to time to then click on it. Something similar to PyAutoGUI locateOnScreen() function.

            It needs to use AI to have some tolerance too, as the image will not be exactly the same from time to time, though it's almost the same so I think any basic AI for image recognition would detect it fine.

            Does anyone have an idea on what to use for this specific case?

            ...

            ANSWER

            Answered 2022-Mar-03 at 06:01

            Try this package called node-moving-things-tracker. I have been using it reliably for a while. It is being actively maintained. Data outputs are well-organized and interpretable. There are a few examples here: https://www.npmjs.com/package/node-moving-things-tracker

            Source https://stackoverflow.com/questions/71078359

            QUESTION

            How would I get an unaltered screenshot and save it to a file from NodeJS?
            Asked 2021-Aug-09 at 21:49

            I have a program that takes a robotjs screen capture and saves it to a file, like a 1 fps live stream.

            ...

            ANSWER

            Answered 2021-Aug-09 at 21:49

            The buffer from robotjs is in the format BGRA (Blue, Green, Red, Alpha/Opacity). Before, it took about 100 to 150 ms to take a screenshot and save, and now it takes 250 to 300 ms after converting to RGBA (which Jimp uses). It got 150 ms slower, but it works. Here is the full code:

            Source https://stackoverflow.com/questions/68718471

            QUESTION

            Signed electron app does not start with robotjs on OSX (Unhandled Errpr: no suitable image found)
            Asked 2020-Aug-08 at 06:51

            I have a signed and notarized App where I want to use robotjs to simulate key taps. I had no problems building robotjs locally but when I run it through the CI, where I sign and notarize the app, the app throws the following error upon starting:

            ...

            ANSWER

            Answered 2020-Aug-07 at 20:05

            Ok, i somehow stumbled over a post where something similar happened and fixed it. What I changed in my odyssey of google are the following things, maybe one of those might help someone:

            In the vue.config.js I added builderOptions.mac.entitlementsInherit = "build/entitlements.mac.inherit.plist". Earlier I only had builderOptions.mac.entitlements

            I added those tow entitelments to my entitelments list:

            Source https://stackoverflow.com/questions/63307240

            QUESTION

            Electron non-context-aware native module in renderer issue
            Asked 2020-Jul-19 at 09:39

            I have tried many things and can not seem to get the robotjs code to execute even with rebuild, and other examples I've seen to try.

            I still get the Loading non-context-aware native module in renderer error.

            I have a button, and on click of the button I want the robotjs code to be executed.

            Here is my current code :

            bot.js

            ...

            ANSWER

            Answered 2020-Jul-19 at 09:39

            Have you read this issue on Github?

            They removed the ability to use non-NAPI and non-context aware modules.

            If you're not using Electron 11 yet, you can still use those modules, if you add the following line in the main process:

            Source https://stackoverflow.com/questions/62946337

            QUESTION

            Electron on click of a button can it execute node?
            Asked 2020-Jul-16 at 10:01

            So I have a start button, and once the button is clicked I want it to execute a function.

            I know I can execute the function on start of the electron app but is there anyway to say have a start button, and it execute the code on click of the button?

            Also I know you can't use node in the browser, and I know Electron uses chromium, but there is still access to node right ?

            This is the error I get :

            ...

            ANSWER

            Answered 2020-Jul-15 at 03:39

            Electron has a 'renderer' thread for frontend javascript like button clicks. You can run your Bot code from there if you just include the bot.js file in the bottom of your index.html file:

            Source https://stackoverflow.com/questions/62905704

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install robotjs

            Install RobotJS using npm:. It's that easy! npm will download one of the prebuilt binaries for your OS. You can get npm here if you don't have it installed. If you need to build RobotJS, see the building section. Instructions for Electron.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/octalmage/robotjs.git

          • CLI

            gh repo clone octalmage/robotjs

          • sshUrl

            git@github.com:octalmage/robotjs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link