'Start Streamlabs stream with Python or CMD prompt and monetize it automatically
I stream 24/7 with Streamlabs. When restarting my computer I need to manually start the stream. I would like to automate this process with a CMD prompt or with the help of python by just "opening" and then starting the stream. On OBS Studio it seems to be a simple launching parameter
--startstreaming
But on Streamlabs this function seems to not exist (or I do not know it).
Now how should I set it up in order to start the stream automatically? A click function on "Start stream" would help too.
Also: there is no way to automatically monetize a stream with YouTube - I would always have to open my channel and monetize the stream automatically. Can I automate that too? Also here: it would be sufficient to open the browser with the right link and click on the stream and monetize it.
Thanks a lot in advance!
Solution 1:[1]
Eventually I was able to transfer SLOBS to OBS Studio and stream with the following prompt:
title obs_stream
:loop
cd C:\Program Files\obs-studio\bin\64bit
taskkill /im obs64.exe /t /f
obs64.exe --startstreaming
timeout /t 28800
goto loop
Solution 2:[2]
You are replacing all the content of the div with text. So you are removing the paragraph element. If you replace the content of the paragraph element it will not shift since the element remains.
function changeText() {
document.querySelector("#div1 p").innerText = "string"
}
<div id="div1" onmouseover="changeText()">
<p>div 1</p>
</div>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tbjorch |
| Solution 2 | epascarello |
