Refresh Window Capture with Python Script

buzzelljason8

New Member
Hi everyone! This is probably a very easy script to write, but I'm having trouble understanding how obspython functions. The problem I'm having is that a livestream of mine has two window captures for programs that crash after every 8 hours, and even when I have a script that loads the programs back up, OBS doesn't recognize the windows anymore.

What I would like to make is a script that refreshes the Window Capture and calls the same window. I included an idea of what that would like in my head. Let me know if I can elaborate better on that idea, and thank you for your help!

ref 2.png
 

JonnoT

New Member
I came across this post trying to solve a similar problem. The "Window Capture" option in OBS needs the window title to the the same at all times. In my case, I'm using the WhatsApp Windows Desktop app which has a different title pertaining to the person you're calling.

I considered using Python, but I can't seem to find a straightforward way to do this with the OBS library?
 
Top