mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
source code
This commit is contained in:
46
libs/enigo/README.md
Normal file
46
libs/enigo/README.md
Normal file
@@ -0,0 +1,46 @@
|
||||
[](https://travis-ci.org/enigo-rs/enigo)
|
||||
[](https://ci.appveyor.com/project/pythoneer/enigo-85xiy)
|
||||
[](https://dependencyci.com/github/pythoneer/enigo)
|
||||
[](https://docs.rs/enigo)
|
||||
[](https://crates.io/crates/enigo)
|
||||
[](https://discord.gg/Eb8CsnN)
|
||||
[](https://gitter.im/enigo-rs/Lobby)
|
||||
|
||||
|
||||
# enigo
|
||||
Cross platform input simulation in Rust!
|
||||
|
||||
- [x] Linux (X11) mouse
|
||||
- [x] Linux (X11) text
|
||||
- [ ] Linux (Wayland) mouse
|
||||
- [ ] Linux (Wayland) text
|
||||
- [x] MacOS mouse
|
||||
- [x] MacOS text
|
||||
- [x] Win mouse
|
||||
- [x] Win text
|
||||
- [x] Custom Parser
|
||||
|
||||
|
||||
```Rust
|
||||
let mut enigo = Enigo::new();
|
||||
|
||||
enigo.mouse_move_to(500, 200);
|
||||
enigo.mouse_click(MouseButton::Left);
|
||||
enigo.key_sequence_parse("{+CTRL}a{-CTRL}{+SHIFT}Hello World{-SHIFT}");
|
||||
```
|
||||
|
||||
for more look at examples
|
||||
|
||||
Runtime dependencies
|
||||
--------------------
|
||||
|
||||
Linux users may have to install libxdo-dev. For example, on Ubuntu:
|
||||
|
||||
```Bash
|
||||
apt install libxdo-dev
|
||||
```
|
||||
On Arch:
|
||||
|
||||
```Bash
|
||||
pacman -S xdotool
|
||||
```
|
||||
Reference in New Issue
Block a user