Crates.io | autoit |
lib.rs | autoit |
version | 0.1.2 |
source | src |
created_at | 2016-12-19 04:13:49.312812 |
updated_at | 2018-09-03 20:26:25.774107 |
description | bindings for AutoItX |
homepage | |
repository | https://github.com/brunoqc/rs-autoit |
max_upload_size | |
id | 7670 |
size | 10,307 |
Rust binding for AutoItX
(Work in progress): If you need any function just open an issue or a PR.
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));
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":
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