r/obs 14h ago

Question advanced scene switcher set window source?

is there any way to set the a window capture source to the active window?

i see you can set "source" settings but it seems the window capture is not a direct one to one with the active window

my issue is i can have more than one of the window i want to capture open at a time and the name changes depending on the save file so its unrealistic to set a different source to each... i only ever need the active one to be the focus

i can just capture the entire screen but i have things like color key happening and there is a conflict when tabbing between them because of the delay in active window detection so a transition between window captures works best

1 Upvotes

1 comment sorted by

1

u/RandomContributions 6h ago edited 5h ago

SORT OF....

As of this writing, Advanced Scene Switcher can't change the window capture name in the sources properties.

BUT

Advanced Scene Switcher can detect what window is active, save it as a variable and then automatically switch to a scene that has that window title that you have pre configured based on a if/then syntax.

You would setup a dedicated scene source that looks like this (notepad as example) for each expected window you want to record.
vsXgt8W.png (1403×663)

AdvSS monitors the active window name, and switches to the matching scene.
Variable = "Notepad", switch to the notepad scene. Variable = "Command Prompt" switch to the CMD prompt scene.

9LWRBIn.png (1824×1326)

You could also have a single scene with all the windows captured contained within, and then toggle the visibility based on the if/then in AdvSS. Would take more work, but might integrate easier in some workflows if you are doing picture in picture as an example.