{"id":19225982,"url":"https://github.com/developer239/macos-keyboard-mouse","last_synced_at":"2025-02-23T10:18:57.165Z","repository":{"id":97424528,"uuid":"430085670","full_name":"developer239/macos-keyboard-mouse","owner":"developer239","description":"Native Keyboard and Mouse controls for your Node application.","archived":false,"fork":false,"pushed_at":"2023-04-28T01:13:32.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T04:16:59.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developer239.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-11-20T11:35:23.000Z","updated_at":"2024-08-12T20:18:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"505c8d7c-48b4-45d4-9d34-eea539c2f7ec","html_url":"https://github.com/developer239/macos-keyboard-mouse","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.125,"last_synced_commit":"957dd88a22ec91ca0432faf4a479af597b9db25a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fmacos-keyboard-mouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fmacos-keyboard-mouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fmacos-keyboard-mouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fmacos-keyboard-mouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer239","download_url":"https://codeload.github.com/developer239/macos-keyboard-mouse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240298873,"owners_count":19779353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-09T15:17:00.067Z","updated_at":"2025-02-23T10:18:56.818Z","avatar_url":"https://github.com/developer239.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Since both RobotJS libraries are no longer being maintained, and as I had been working with C++ in the past month, I decided to start a new, more robust implementation. [I have implemented keyboard, mouse, and display controls that are very similar to the original RobotJS API 🤖developer239/robot-ts](https://github.com/developer239/robot-ts) (and should be cross-platform in the future)\n\n# MacOS Keyboard Mouse\n\n[![npm version](http://img.shields.io/npm/v/macos-keyboard-mouse.svg?style=flat)](https://www.npmjs.com/package/macos-keyboard-mouse \"View this project on npm\")\n\nKeyboard and mouse controls for your Node project. Currently, only supports Mac.\n\n## Libraries:\n\n- [node-addon-api](https://github.com/nodejs/node-addon-api) - interface for building native addons\n- [cmake-js](https://github.com/cmake-js/cmake-js) - native addon build tool\n\n## Example\n\n### Mouse\n\n```js\nimport { Mouse, Button } from 'macos-keyboard-mouse';\n\nconst mouse = new Mouse();\n\n// sets delay between pixels\nmouse.setDelay(16);\n\n// moves mouse to x: 100, y: 100\nmouse.move(100, 100);\n\n// presses left mouse key\nmouse.pressLeft();\n\n// presses right mouse key\nmouse.pressRight();\n\n// gets current mouse position\nmouse.getLocation();\n\n// holds left mouse button down\nmouse.press(Button.left, false);\n\n// holds right mouse button down\nmouse.press(Button.right, false);\n```\n\n### Keyboard\n\n```js\nimport { Keyboard } from 'macos-keyboard-mouse';\n\nconst keyboard = new Keyboard();\n\n// types 'hello world' \nkeyboard.type('Hello world');\n\n// types 'm'\nkeyboard.click('m');\n  \n// presses \"enter\" key\nkeyboard.clickEnter();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fmacos-keyboard-mouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper239%2Fmacos-keyboard-mouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fmacos-keyboard-mouse/lists"}