#obs #helper #libobs #window-search-mode

libobs-window-helper

Provides a list of windows that can be captured by OBS

5 releases

new 0.1.4 May 1, 2025
0.1.3 Apr 2, 2025
0.1.2 Jul 30, 2024
0.1.1 Jul 28, 2024
0.1.0 Jul 27, 2024

#5 in #libobs

Download history 1/week @ 2025-03-13 65/week @ 2025-03-27 73/week @ 2025-04-03 7/week @ 2025-04-10

145 downloads per month
Used in libobs-sources

GPL-3.0 license

29KB
624 lines

OBS Window Helper

This crate provides necessary information about windows that could be used so they can be captured with the window_capture or game_capture source in OBS.
The function you probably want to use is get_all_windows which returns a list of WindowInfo structs.


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);
        }
}

Dependencies

~120MB
~2M SLoC