https://github.com/bbigras/rs-autoit
Rust binding for autoit
https://github.com/bbigras/rs-autoit
autoit rust rust-bindings rust-library
Last synced: about 1 year ago
JSON representation
Rust binding for autoit
- Host: GitHub
- URL: https://github.com/bbigras/rs-autoit
- Owner: bbigras
- Created: 2016-12-17T04:25:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-10T23:58:19.000Z (about 3 years ago)
- Last Synced: 2025-03-28T03:04:04.015Z (about 1 year ago)
- Topics: autoit, rust, rust-bindings, rust-library
- Language: Rust
- Size: 19.5 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://crates.io/crates/autoit) [](http://isitmaintained.com/project/bbigras/rs-autoit "Average time to resolve an issue")
[](http://isitmaintained.com/project/bbigras/rs-autoit "Percentage of issues still open")
[](https://dependabot.com)
# autoit
Rust binding for [AutoItX](https://www.autoitscript.com/site/autoit/)
**(Work in progress):** If you need any function just open an issue or a PR.
## Examples
```rust
use autoit::{init, mouse_move, mouse_get_pos};
init();
mouse_move(0, 0, Some(0));
assert_eq!(mouse_get_pos(), (0, 0));
mouse_move(50, 50, Some(0));
assert_eq!(mouse_get_pos(), (50, 50));
```
## Build
Only tested with nightly-x86_64-pc-windows-msvc. Not sure if it will work with gnu (mingw).
To build and run I have to set INCLUDE, LIB, LIBCLANG_PATH and PATH in a "VS2015 x64 Native Tools Command Prompt":
```batch
set INCLUDE=%INCLUDE%;c:\AutoItX;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt
set LIB=%LIB%;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150.0\ucrt\x64;C:\AutoItX
set PATH=%PATH%;c:\AutoItX
set LIBCLANG_PATH=D:\LLVM\bin
```
License: Unlicense/MIT