Crates.io | libobs-window-helper |
lib.rs | libobs-window-helper |
version | 0.1.2 |
source | src |
created_at | 2024-07-27 14:11:12.267494 |
updated_at | 2024-07-30 19:34:57.986997 |
description | Provides a list of windows that can be captured by OBS |
homepage | |
repository | https://github.com/sshcrack/obs-window-helper |
max_upload_size | |
id | 1317337 |
size | 27,831 |
This is just a helper crate for the (to be released) libobs-sources
crate. It provides a way to get a list of all windows that OBS can capture (eiter window_capture
or game_capture
). If you want to use this crate nevertheless, here's an example.
use libobs_window_helper::{get_all_windows, WindowSearchMode};
fn main() {
let res = get_all_windows(WindowSearchMode::ExcludeMinimized, false).unwrap();
for i in res {
/// This struct contains all crucial information about the window like title, class name, obs_id etc.
println!("{:?}", i);
}
}