GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • Game Engine

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com โ€” robotjs Alternatives - C++ Game Engine | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

robotjs

Node.js Desktop Automation.

octalmage logo
robotjs.dev    Source Code    Changelog
Suggest Changes
Take the C++ Developer Survey - About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email. Take the survey ยป
Popularity
9.1
Declining
Activity
7.6
-
Stars 12,790
Watchers 189
Forks 1,004
Last Commit about 1 month ago

Description

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?

Code Quality Rank: L4
Programming language: C
License: MIT License
Tags: Game Engine     Windows     Linux     Desktop Automation     Mac    
Latest version: v0.7.1

robotjs alternatives and similar libraries

Based on the "Game Engine" category.
Alternatively, view robotjs alternatives based on common mentions on social networks and blogs.

  • Godot

    10.0 10.0 L1 robotjs VS Godot
    Godot Engine โ€“ Multi-platform 2D and 3D game engine
    godotengine logo
  • Cocos2d-x

    9.7 3.2 L1 robotjs VS Cocos2d-x
    Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
    cocos2d logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • filament

    9.7 9.9 robotjs VS filament
    An open-source framework for building polished, maintainable business software with Laravel.
    filamentphp logo
  • GamePlay

    8.4 1.9 L1 robotjs VS GamePlay
    Open-source, cross-platform, C++ game engine for creating 2D/3D games.
    gameplay3d logo
  • Panda3D

    8.3 9.4 L1 robotjs VS Panda3D
    Powerful, mature open-source cross-platform game engine for Python and C++, developed by Disney and CMU
    panda3d logo
  • Banshee Engine

    8.2 8.7 L1 robotjs VS Banshee Engine
    DISCONTINUED. Banshee Game Engine
  • CRYENGINE

    8.0 0.0 L1 robotjs VS CRYENGINE
    DISCONTINUED. CRYENGINE is a powerful real-time game development platform created by Crytek.
    CRYTEK logo
  • Spring RTS game engine

    8.0 4.6 L1 robotjs VS Spring RTS game engine
    A powerful free cross-platform RTS game engine. - Report issues at https://springrts.com/mantis/
    spring logo
  • Torque3D

    7.9 1.8 L1 robotjs VS Torque3D
    MIT Licensed Open Source version of Torque 3D from GarageGames
    GarageGames logo
  • AutoKey

    7.5 2.1 robotjs VS AutoKey
    AutoKey, a desktop automation utility for Linux and X11.
    autokey logo
  • Automagica

    7.4 0.0 robotjs VS Automagica
    AI-powered Smart Robotic Process Automation ๐Ÿค–
    automagica logo
  • Amazon Lumberyard

    7.2 2.3 robotjs VS Amazon Lumberyard
    DISCONTINUED. Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch โ€“ with full source.
    aws logo
  • Polycode

    7.1 0.0 L1 robotjs VS Polycode
    Polycode is a cross-platform framework for creative code.
    ivansafrin logo
  • KlayGE

    7.0 0.9 robotjs VS KlayGE
    KlayGE is a cross-platform open source game engine with plugin-based architecture.
    gongminmin logo
  • flixel

    7.0 8.2 robotjs VS flixel
    Free, cross-platform 2D game engine powered by Haxe and OpenFL
    HaxeFlixel logo
  • Allegro

    6.8 7.9 L3 robotjs VS Allegro
    The official Allegro 5 git repository. Pull requests welcome!
    liballeg logo
  • Axmol Engine

    6.2 9.5 robotjs VS Axmol Engine
    Open-source C++ game engine with Lua for 2D and 3D games across mobile, desktop, WebAssembly, and Xbox (UWP).
    axmolengine logo
  • Torque2D

    6.1 9.2 robotjs VS Torque2D
    A completely free, open-source, 2D game engine built on proven torque technology.
    TorqueGameEngines logo
  • xmake-repo

    6.1 9.9 robotjs VS xmake-repo
    ๐Ÿ“ฆ An official xmake package repository
    xmake-io logo
  • The MOAI Multi-platform Game Engine

    5.9 0.0 L2 robotjs VS The MOAI Multi-platform Game Engine
    This is the development repo of Moai SDK.
    moai logo
  • squirrel

    5.6 5.4 L1 robotjs VS squirrel
    Official repository for the programming language Squirrel
    albertodemichelis logo
  • nCine

    5.5 7.6 robotjs VS nCine
    A cross-platform 2D game engine
    nCine logo
  • Oxygine

    5.2 3.1 L1 robotjs VS Oxygine
    Oxygine is C++ engine and framework for 2D games on iOS, Android, Windows, Linux and Mac
    oxygine logo
  • Cute Framework

    4.6 9.6 robotjs VS Cute Framework
    The *cutest* framework out there for creating 2D and 3D games in C++!
    RandyGaul logo
  • RaZ

    4.4 7.5 robotjs VS RaZ
    Modern & multiplatform 3D game engine
    Razakhel logo
  • ClanLib

    4.0 7.4 robotjs VS ClanLib
    ClanLib is a cross platform C++ toolkit library.
    sphair logo
  • Wolf Engine

    3.2 7.1 robotjs VS Wolf Engine
    DISCONTINUED. The Wolf is a comprehensive set of C/C++ open source libraries for realtime rendering, realtime streaming and game developing
    WolfEngine logo
  • Grit

    1.2 0.0 L1 robotjs VS Grit
    Grit Game Engine
    sparkprime logo
  • cerlib

    1.0 9.8 robotjs VS cerlib
    DISCONTINUED. Lightweight 2D Game Framework for C++
  • Polly

    0.8 9.6 robotjs VS Polly
    DISCONTINUED. Minimalistic 2D C++ Game Framework [GET https://api.github.com/repos/cdervis/Polly2D: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository]
    cdervis logo
  • delta3d

    - robotjs VS delta3d
    A robust simulation platform. [LGPL2]

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of robotjs or a related project?

Add another 'Game Engine' Library

Popular Comparisons

  • robotjs
    vs
    Automagica
  • robotjs
    vs
    AutoKey
  • robotjs
    vs
    flixel
  • robotjs
    vs
    Godot
  • robotjs
    vs
    nCine

README

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?

Check out some of the cool things people are making with RobotJS! Have your own rad RobotJS project? Feel free to add it!

Contents

  • Installation
  • Examples
  • API
  • Building
  • Plans
  • Progress
  • FAQ
  • License

Installation

Install RobotJS using npm:

npm install robotjs

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.

Examples

Mouse
// Move the mouse across the screen as a sine wave.
var robot = require("robotjs");

// Speed up the mouse.
robot.setMouseDelay(2);

var twoPI = Math.PI * 2.0;
var screenSize = robot.getScreenSize();
var height = (screenSize.height / 2) - 10;
var width = screenSize.width;

for (var x = 0; x < width; x++)
{
    y = height * Math.sin((twoPI * x) / width) + height;
    robot.moveMouse(x, y);
}
Keyboard
// Type "Hello World" then press enter.
var robot = require("robotjs");

// Type "Hello World".
robot.typeString("Hello World");

// Press enter.
robot.keyTap("enter");
Screen
// Get pixel color under the mouse.
var robot = require("robotjs");

// Get mouse position.
var mouse = robot.getMousePos();

// Get pixel color in hex format.
var hex = robot.getPixelColor(mouse.x, mouse.y);
console.log("#" + hex + " at x:" + mouse.x + " y:" + mouse.y);

Read the Wiki for more information!

API

The RobotJS API is hosted at https://robotjs.io/docs/syntax.

Building

Please ensure you have the required dependencies before installing:

  • Windows
    • windows-build-tools npm package (npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe)
  • Mac
    • Xcode Command Line Tools.
  • Linux
    • Python (v2.7 recommended, v3.x.x is not supported).
    • make.
    • A C/C++ compiler like GCC.
    • libxtst-dev and libpng++-dev (sudo apt-get install libxtst-dev libpng++-dev).

Install node-gyp using npm:

npm install -g node-gyp

Then build:

node-gyp rebuild

See the node-gyp readme for more details.

Plans

  • โˆš Control the mouse by changing the mouse position, left/right clicking, and dragging.
  • โˆš Control the keyboard by pressing keys, holding keys down, and typing words.
  • โˆš Read pixel color from the screen and capture the screen.
  • Find an image on screen, read pixels from an image.
  • Possibly include window management?

Progress

Module Status Notes
Mouse 100% All planned features implemented.
Keyboard 100% All planned features implemented.
Screen 85% Image search, pixel search.
Bitmap 0% Saving/opening, png support.

FAQ

Does RobotJS support global hotkeys?

Not currently, and I don't know if it ever will. I personally use Electron/NW.js for global hotkeys, and this works well. Later on I might add hotkey support or create a separate module. See #55 for details.

Can I take a screenshot with RobotJS?

Soon! This is a bit more complicated than the rest of the features, so I saved it for last. Luckily the code is already there, I just need to write the bindings, and I've already started. Subscribe to #13 for updates.

Why is <insert key> missing from the keyboard functions?

We've been implementing keys as we need them. Feel free to create an issue or submit a pull request!

How about multi-monitor support?

The library doesn't have explicit multi-monitor support, so anything that works is kind of on accident. Subscribe to #88 for updates.

For any other questions please submit an issue.

Story

I'm a huge fan of AutoHotkey, and I've used it for a very long time. AutoHotkey is great for automation and it can do a bunch of things that are very difficult in other languages. For example, it's imagesearch and pixel related functions are hard to reproduce on Mac, especially in scripting languages. These functions are great for automating apps that can't be automated like Netflix. This has never been a big deal since I've always used Windows at work, but for the past few years I've been using Mac exclusively.

I like AutoHotkey, but I like Node.js more. By developing RobotJS I get an AutoHotkey replacement on Mac (finally!), and I get to use my favorite language.

TLDR: There's nothing like AutoHotkey on Mac, so I'm making it.

License

MIT

Based on autopy. Maintained by Jason Stallings.


*Note that all licence references and agreements mentioned in the robotjs README section above are relevant to that project's source code only.

Do not miss the trending, libraries, news and articles with our weekly report.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
Spin The Wheel Of Names for a cryptographically secure random name picker.
Schedule a when to meet poll.
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.