Question / Help Show a text message once in a while

martelly01

New Member
Hello,
Is it possible to show a text message everyonce in while, like 10 seconds every minute, for instance ?

Thank you.
 
I don't think there is an exact native way. You could use a text source, pad it with a bunch of spaces, make it scroll, use custom text extents to take up just as much room as you want the text to be seen. Not the best solution. It would be best to capture A source that manipulates text in the way you want (and probably chroma key the background). I don't know what exists like this and what all your needs are

You might think about writing a simple webpage and using it as a source with the clr browser source plugin. Or capture the window of any program you make.

Here is a python (27) script that will write to a file text. If you use a text source that reads the file, the text will change.


Code:
import os
import time
my_text = "I like obs"
file_path = 'bla.txt'
time_shown = 3
time_hidden = 7

with open(file_path, 'w') as source:
   while True:
     source.write(my_text)
     source.flush()
     #print my_text
     time.sleep(time_shown) #Time text is shown
     
     source.seek(0)
     source.truncate()
     source.write('')
     source.flush()
     #print ''
     time.sleep(time_hidden) #Time not shown
     source.seek(0)
     source.truncate()
 
Thank you so much for you answer.
I think i'm gonna try the first solution which seems to be easier.
The purpose of that text would be to suggest people that like my stream to follow me, but i don't want it to be harassing as it would be if displayed all the time.
 
Back
Top