active-win-pos-rs
A small Rust library that let's you get position and size of the active window on Windows and MacOS
Build
Example
Output:
% window position: WindowPosition { x: 733.0, y: 353.0, width: 815.0, height: 583.0 }
A small Rust library that let's you get position and size of the active window on Windows and MacOS
% git clone https://github.com/dimusic/active-win-pos-rs.git
% cd active-win-pos-rs
% cargo build
% cargo run --example simple
Output:
% window position: WindowPosition { x: 733.0, y: 353.0, width: 815.0, height: 583.0 }