Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
how can I make a collapsed that got the text from a text file .txt. the file content changes every three minutes as I can align the contents of the file in the collapsed? thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,636 Location: Canada Thanks: 33 times Was thanked: 506 time(s) in 475 post(s)
|
@ mixsystem
I think we may have lost something in the translation... Can you describe differently or provide a visual aid to what it is you want to accomplish? (I have no idea what a "collapsed" is referring to)
Ice
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
I have to insert the contents of a text file overlay. the content of the file changes every 3minutes about
thanks for the answer you want to give me
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,636 Location: Canada Thanks: 33 times Was thanked: 506 time(s) in 475 post(s)
|
@ mixsystem If I understand you correctly, you want to have the text content update itself 'dynamically' and automatically. I believe there are others who are doing this to some extent via the API and some scripting but it is outside of my knowledge base so I will leave that for someone else to contribute on that front. There are, however, some related threads that deal with dynamic changes to XAML titles and images that may help with your general task. http://forums.vmix.com/d....aspx?g=posts&t=2183http://forums.vmix.com/d....aspx?g=posts&t=3837And then there is SmartTitler from Richard Gatarski: http://forums.vmix.com/d....aspx?g=posts&t=2958All-in-all though, you are not the first to 'request' this type of feature in vMix. As stated, I believe it is possible, it is just not something that is easily configured with the click of a button or setting in vMix. Ice
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
thanks for perfect pictures I can do it, it works perfectly. but to a text file, there is no solution? thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
in short, I would need a dynamic text
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
@ mixsystem see this post for example exampleit checks a (xml)file every .5 sec. instead of populating a listbox one has to populate a textfield in your title. key here is that it checks the source file at regular interval
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
It could be a solution, but I can not create code suitable for my needs.It can help you? thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
Like this (see attached) load *.dll file as title edit and save text in TestFile.txt will check for change every 3 seconds File Attachment(s): testtitleupdate.zip (8kb) downloaded 20 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
perfect is what I was looking for. now I should change the code to read from a file with a .txt extension to a folder on your PC thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
the text file containing the text you have to enter in output is in a folder locally. example r:/regia/OnAir.txt how can I do? thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
here is the basic of the code (MS Visual Basic 2010 Express compiled as .dll) xaml.vb Code:Imports System.Windows.Threading
Imports System.IO
Public Class UserControl1
Private WithEvents m_Timer As New DispatcherTimer
Private Sub UserControl1_LayoutUpdated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LayoutUpdated
If m_Timer IsNot Nothing Then
m_Timer.Interval = TimeSpan.FromMilliseconds(3000)
m_Timer.Start()
End If
End Sub
Private Sub m_Timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles m_Timer.Tick
InitializeComponent()
Try
Using sr As New StreamReader( "r:/regia/OnAir.txt")
Dim line As String
line = sr.ReadToEnd()
TextBlock1.Text = line
End Using
Catch
TextBlock1.Text = "Could not read the file"
End Try
End Sub
End Class
xaml Code:<UserControl x:Class="UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" Width="1920" Height="1080" xmlns:my="clr-namespace:vMixTitleLibrary;assembly=vMixTitleLibrary" Padding="5" Margin="5">
<Grid >
<TextBlock Height="79" Margin="73,926,772,0" Name="TextBlock1" Text="TextBlock" VerticalAlignment="Top" Foreground="White" FontSize="56" Background="#FF145BAD" />
</Grid>
</UserControl>
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
thanks for the umpteenth time to answer and I are dedicating. unfortunately I am not a programmer and I can not compile correctly what you have provided me. can you kindly produce it? thank you very much and sorry again for my ignorance
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
Would be practical if you could provide me with a title example as of where on the screen ( and size etc ) you want the text to appear. You can use the vMix title designer to do this and provide it ( or the code of it)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
See attached (kept it universal) - load as title - right click and specify duration (of interval) in seconds and specify file location (c:/dir/yourfile.txt) - change textcolor, size etc with the title options available - position your appearing text / title according to your liking ( or on top of your personal background) - long texts do not wrap but multiline is possible (hence starting top of title) - there is NO error trapping (except if file is not found) - Use at own risk ! File Attachment(s): vMixReadText.zip (8kb) downloaded 26 time(s).You cannot view/download attachments. Try to login or register.
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
perfect perfect I got the desired result. I thank you infinitely ..... thanks again for your patience
Now I would have two questions to ask but do not think it appropriate to continue on the same topics, though I try.
1) it's configuration, I would like to know the procedure for the inclusion of the "station logo" Now I plug in "Multi View" But I have to duplicate it on each input. There is a procedure to put it on 'total output?
2) I need to create a playlist consisting of camera inputs inserting graphics and cameras change in time. despite the playlist is not over I have to stop with a clip without the preset playlist does not return output
I hope I have expressed properly. thanks again for the answer you want to give me
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
welcome
1) as an constant on overlay ;-)
please post these questions in a seperate topic
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/19/2015(UTC) Posts: 41 Location: Italy
|
doggy wrote:See attached (kept it universal)
- load as title - right click and specify duration (of interval) in seconds and specify file location (c:/dir/yourfile.txt) - change textcolor, size etc with the title options available - position your appearing text / title according to your liking ( or on top of your personal background) - long texts do not wrap but multiline is possible (hence starting top of title) - there is NO error trapping (except if file is not found) - Use at own risk ! dynamic text works perfectly for days running without any problems, but the reopening of Vmix despite reloading the preset does not store the path where the source file fish how can I do? thank you
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close