{"id":16629230,"url":"https://github.com/wiggin77/robotjs-externs","last_synced_at":"2026-03-13T10:32:57.577Z","repository":{"id":95828939,"uuid":"82404291","full_name":"wiggin77/robotjs-externs","owner":"wiggin77","description":"Haxe externs for RobotJS. (http://robotjs.io/)","archived":false,"fork":false,"pushed_at":"2018-02-03T22:07:37.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T20:27:16.808Z","etag":null,"topics":["haxe","robotjs"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiggin77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-18T17:38:49.000Z","updated_at":"2017-02-18T17:56:04.000Z","dependencies_parsed_at":"2023-05-20T16:17:07.356Z","dependency_job_id":null,"html_url":"https://github.com/wiggin77/robotjs-externs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wiggin77/robotjs-externs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiggin77%2Frobotjs-externs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiggin77%2Frobotjs-externs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiggin77%2Frobotjs-externs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiggin77%2Frobotjs-externs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiggin77","download_url":"https://codeload.github.com/wiggin77/robotjs-externs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiggin77%2Frobotjs-externs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30465431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haxe","robotjs"],"created_at":"2024-10-12T04:40:24.349Z","updated_at":"2026-03-13T10:32:57.554Z","avatar_url":"https://github.com/wiggin77.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/wiggin77/robotjs-externs.svg?branch=master)](https://travis-ci.org/wiggin77/robotjs-externs)\n=========\nHaxe externs for [RobotJS](http://robotjs.io/).  RobotJS is a desktop automation library for Node.js.  \n\nInject keystrokes and mouse moves into a Node.js application.  Also capture mouse position and screen pixels.\n\n## Samples\nA simple test app for Node.js is [here](./test/simple/README.md).\n\nA sample app for VSCode/Electron is [here](./test/vscode-electron/README.md).\n\n## Installation\nInstall `robot-externs` lib for Haxe:\n```\nhaxelib git robotjs-externs https://github.com/wiggin77/robotjs-externs.git\n```\nInstall RobotJS module. From the directory of the project for which you want to add RobotJS support (i.e. directory containing `package.json`):\n```\nnpm install robotjs\n```\nThis will create a `node_modules` directory within your project directory.\n\n## Building RobotJS\n`npm` will install prebuilt binaries for Windows, Mac, and Linux. If you need to build it yourself, see [here](http://robotjs.io/docs/building).\n\nTo build for Electron see [here](http://robotjs.io/docs/electron).\n\n## Examples\nExamples modified for Haxe from [http://robotjs.io/docs/examples](http://robotjs.io/docs/examples).\n\n### Mouse\n```haxe\nimport js.robotjs.Robot;\n\nclass Test {\n    public static function test() {\n        // Speed up the mouse.\n        Robot.setMouseDelay(2);\n\n        var twoPI = Math.PI * 2.0;\n        var screenSize = Robot.getScreenSize();\n        var height = (screenSize.height / 2) - 10;\n        var width = screenSize.width;\n\n        for (x in 0...width)\n        {\n            var y = Std.int(height * Math.sin((twoPI * x) / width) + height);\n            Robot.moveMouse(x, y);\n        }    \n    }\n}\n```\n\n### Keyboard\n```haxe \nimport js.robotjs.Robot;\nimport js.robotjs.RobotHelper;\n\nclass Test {\n    public static function test() {\n        // Type \"Hello World\".\n        Robot.typeString(\"Hello World\");\n\n        // Press enter.\n        Robot.keyTap(\"enter\");\n\n        // Use helper for auto-shift modifier.\n        RobotHelper.typeString(\"_Mixed shift and non-shift!\");\n    }\n}\n```\n\n### Screen \n```haxe \nimport js.robotjs.Robot;\n\nclass Test {\n    public static function test() {\n        // Get mouse position.\n        var mouse = Robot.getMousePos();\n\n        // Get pixel color in hex format.\n        var hex = Robot.getPixelColor(mouse.x, mouse.y);\n        trace(\"#\" + hex + \" at x:\" + mouse.x + \" y:\" + mouse.y);\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiggin77%2Frobotjs-externs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiggin77%2Frobotjs-externs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiggin77%2Frobotjs-externs/lists"}