{"id":13683513,"url":"https://github.com/enigo-rs/enigo","last_synced_at":"2025-04-30T13:31:06.160Z","repository":{"id":16646094,"uuid":"80247571","full_name":"enigo-rs/enigo","owner":"enigo-rs","description":"Cross platform input simulation in Rust","archived":false,"fork":false,"pushed_at":"2024-11-05T01:18:52.000Z","size":782,"stargazers_count":1072,"open_issues_count":33,"forks_count":107,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-11-05T02:24:45.251Z","etag":null,"topics":["automation","cross-platform","input","keyboard","mouse","rust","simulation"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/enigo-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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":"2017-01-27T21:29:02.000Z","updated_at":"2024-11-05T02:03:44.000Z","dependencies_parsed_at":"2023-10-01T21:49:54.786Z","dependency_job_id":"e6751485-3123-48ac-9f31-a03a0b3561d2","html_url":"https://github.com/enigo-rs/enigo","commit_stats":{"total_commits":245,"total_committers":34,"mean_commits":7.205882352941177,"dds":0.6857142857142857,"last_synced_commit":"c53be78a4cdbd2d19ccda59f990050d8591bb969"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigo-rs%2Fenigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigo-rs%2Fenigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigo-rs%2Fenigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigo-rs%2Fenigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enigo-rs","download_url":"https://codeload.github.com/enigo-rs/enigo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224212221,"owners_count":17274381,"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":["automation","cross-platform","input","keyboard","mouse","rust","simulation"],"created_at":"2024-08-02T13:02:13.985Z","updated_at":"2025-04-30T13:31:06.146Z","avatar_url":"https://github.com/enigo-rs.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![Build status](https://img.shields.io/github/actions/workflow/status/enigo-rs/enigo/build.yml?branch=main)](https://github.com/enigo-rs/enigo/actions/workflows/build.yml)\n[![Docs](https://docs.rs/enigo/badge.svg)](https://docs.rs/enigo)\n[![Dependency status](https://deps.rs/repo/github/enigo-rs/enigo/status.svg)](https://deps.rs/repo/github/enigo-rs/enigo)\n\n![Rust version](https://img.shields.io/badge/rust--version-1.85+-brightgreen.svg)\n[![Crates.io](https://img.shields.io/crates/v/enigo.svg)](https://crates.io/crates/enigo)\n\n# enigo\n\nCross platform input simulation in Rust!\n\n- [x] Serialize/Deserialize\n- [x] Linux (X11) mouse\n- [x] Linux (X11) text\n- [x] Linux (Wayland) mouse (Experimental)\n- [x] Linux (Wayland) text (Experimental)\n- [x] Linux (libei) mouse (Experimental)\n- [x] Linux (libei) text (Experimental)\n- [x] MacOS mouse\n- [x] MacOS text\n- [x] Windows mouse\n- [x] Windows text\n\nEnigo also works on *BSDs if they use X11 or Wayland. I don't have a machine to test it and there are no Github Action runners for it, so the BSD support is not explicitly listed.\n\n```Rust\nlet mut enigo = Enigo::new(\u0026Settings::default()).unwrap();\n\nenigo.move_mouse(500, 200, Abs).unwrap();\nenigo.button(Button::Left, Click).unwrap();\nenigo.text(\"Hello World! here is a lot of text  ❤️\").unwrap();\n```\n\nFor more, look at the ([examples](examples)).\n\n## Features\n\nBy default, enigo currently works on Windows, macOS and Linux (X11). If you want to be able to serialize and deserialize commands for enigo ([example](examples/serde.rs)), you need to activate the `serde` feature.\n\nThere are multiple ways how to simulate input on Linux and not all systems support everything. Enigo can also use wayland protocols and libei to simulate input but there are currently some bugs with it. That is why they are hidden behind feature flags.\n\nIf you do not want your users to have to install any runtime dependencies on Linux when using X11, you can try the experimental `x11rb` feature.\n\n\n## Runtime dependencies\n\nLinux users may have to install `libxdo-dev` if they are using `X11`. For example, on Debian-based distros:\n\n```Bash\napt install libxdo-dev\n```\n\nOn Arch:\n\n```Bash\npacman -S xdotool\n```\n\nOn Fedora:\n\n```Bash\ndnf install libX11-devel libxdo-devel\n```\n\nOn Gentoo:\n\n```Bash\nemerge -a xdotool\n```\n\n## Permissions\n\nSome platforms have security measures in place to prevent programs from entering keys or controlling the mouse. Have a look at the [permissions](Permissions.md) documentation to see what you need to do to allow it.\n\n## Migrating from a previous version\n\nPlease have a look at our [changelog](CHANGES.md) to find out what you have to do, if you used a previous version.\n\n## Debugging\n\nIf you encounter an issue and want to debug it, turn on log messages as described [here](DEBUGGING.md).\n\n\n## Testing this crate\n\n*Warning*: The tests will move the mouse, enter text, press keys and open some applications. Read the test cases before you run them so you know what to expect. It's best to close everything so that the tests don't mess with your system. Some of them run for a long time because they are intended to be run in the CI. Make sure to run the tests sequentially, otherwise they will fail because other mouse movements or entered keys are detected. You can do so by running\n\n```Bash\ncargo test --all-features -- --test-threads=1\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenigo-rs%2Fenigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenigo-rs%2Fenigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenigo-rs%2Fenigo/lists"}