libobs-window-helper

Crates.iolibobs-window-helper
lib.rslibobs-window-helper
version0.1.2
sourcesrc
created_at2024-07-27 14:11:12.267494
updated_at2024-07-30 19:34:57.986997
descriptionProvides a list of windows that can be captured by OBS
homepage
repositoryhttps://github.com/sshcrack/obs-window-helper
max_upload_size
id1317337
size27,831
Hendrik Lind (sshcrack)

documentation

README

libOBS Window Helper

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.

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);
        }
}
Commit count: 0

cargo fmt