logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
fgolman  
#1 Posted : Friday, November 21, 2025 2:41:12 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 111
United States
Location: Chicago

Thanks: 10 times
Was thanked: 4 time(s) in 3 post(s)
Is it possible to add a line of text at the bottom or top of a text field and have the rest of the text already there scroll up or down?

Kind of like how an old-school terminal would look. Say 10 lines and then when the 11th line is received one line at the top or bottom is lost.

Now, the key to this is to do it via scripting so I can have dynamic data that is coming in and scrolling the older text up or down as noted.

Thank you,

Fritz Golman
RadioDNA
Luis70  
#2 Posted : Friday, November 21, 2025 5:10:16 AM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 108
Grenada

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
go to this link...may be helpful
doggy  
#3 Posted : Friday, November 21, 2025 5:52:49 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,455
Belgium
Location: Belgium

Thanks: 312 times
Was thanked: 1008 time(s) in 830 post(s)
Guessing on top of that you like it to be animated 2 (scroll) ,has to be within a GT title , come from a vMix datasource , ....?
fgolman  
#4 Posted : Friday, November 21, 2025 6:51:42 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 111
United States
Location: Chicago

Thanks: 10 times
Was thanked: 4 time(s) in 3 post(s)
Not from a data source but created string variable within an existing script.

So, once again, imagine a terminal screen/window. As data comes in text is added to the bottom row. Each time text is added the text above that line scrolls up. The topmost line is eventually removed as the line below that becomes the top line. And so on, whenever new information is posted.

Now, I realize I can create an array and make those moves in the array and push the entire array to the text window but I'm wondering if there's a simpler way to do this. Or must it be brute force?

Thanks,

Fritz Golman
RadioDNA
Luis70  
#5 Posted : Friday, November 21, 2025 7:22:54 AM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 108
Grenada

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Dont seem to inderstane what you want to do, you explanation is a bit confusing, but if you do a google search you just may find what you want
doggy  
#6 Posted : Friday, November 21, 2025 7:28:46 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,455
Belgium
Location: Belgium

Thanks: 312 times
Was thanked: 1008 time(s) in 830 post(s)
how about:

Code:
'fill textblock with say 10 lines of text

'read content of textblock
dim str as string = Input.Find("nameoftitle.gtzip").Text("TextBlock1.Text")

'search for newline and delete text before it incl the newline = remove first line
Dim x = Environment.NewLine 
Dim index = str.IndexOf(x)
If (index >= 0) Then
    str = str.Substring(index + 1).Trim()
End If

' add you new text at end of current text
str += Environment.NewLine & "your new text"

'send back to textblock
API.Function("SetText",Input:=8,SelectedIndex:=0,Value:=str)
Users browsing this topic
Guest
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.