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
Trambler  
#1 Posted : Thursday, January 14, 2021 4:14:27 PM(UTC)
Trambler

Rank: Newbie

Groups: Registered
Joined: 1/13/2021(UTC)
Posts: 3
Russian Federation
Location: Москва

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Hi Friends, help me write a script.
It is necessary that the text when pressed, let's say on A, starts up and changes color (blinking red, for example), and pressing B stops and becomes white.
thanks 1 user thanked Trambler for this useful post.
doggy on 1/15/2021(UTC)
doggy  
#2 Posted : Thursday, January 14, 2021 6:16:22 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
You don't need a script to change textcolors using a key (A - B) but shortcuts

the changecolor function is in the list of shortcuts as is hide/unhide to simulate blinking
thanks 1 user thanked doggy for this useful post.
Trambler on 1/14/2021(UTC)
Trambler  
#3 Posted : Thursday, January 14, 2021 6:43:53 PM(UTC)
Trambler

Rank: Newbie

Groups: Registered
Joined: 1/13/2021(UTC)
Posts: 3
Russian Federation
Location: Москва

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
You don't need a script to change textcolors using a key (A - B) but shortcuts

the changecolor function is in the list of shortcuts as is hide/unhide to simulate blinking



What is needed is a script to simulate blinking text



Function=SetTextColour&Duration=1000&Input=White.gtzip&Value=red&SelectedName=TextBlock1.Text
How do I loop this command?
doggy  
#4 Posted : Thursday, January 14, 2021 8:27:30 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
What you need is a understanding of programming first!

Please check how shortcuts functions are defined (elements needed) before converting it into a function for in a script . both need the same arguments !

a SetTextColour for example does NOT contain a duration argument. one can not mix and match various arguments from different functions !

also google on how to program in vb.net for example like how to loop etc

one can also check the "scripting for dummies" post in this forum to get many examples

Code:
'blinking text
do while true
API.Function("SetTextVisible",Input:="Text Middle Centre Left Right Sharp.gtzip",SelectedName:="Message.Text")
sleep(1000)
loop


if the title is only one text one can use triggers to blink too (overlay on/off) ;-)
thanks 1 user thanked doggy for this useful post.
Trambler on 1/14/2021(UTC)
Trambler  
#5 Posted : Thursday, January 14, 2021 9:13:48 PM(UTC)
Trambler

Rank: Newbie

Groups: Registered
Joined: 1/13/2021(UTC)
Posts: 3
Russian Federation
Location: Москва

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
What you need is a understanding of programming first!

Please check how shortcuts functions are defined (elements needed) before converting it into a function for in a script . both need the same arguments !

a SetTextColour for example does NOT contain a duration argument. one can not mix and match various arguments from different functions !

also google on how to program in vb.net for example like how to loop etc

one can also check the "scripting for dummies" post in this forum to get many examples

Code:
'blinking text
do while true
API.Function("SetTextVisible",Input:="Text Middle Centre Left Right Sharp.gtzip",SelectedName:="Message.Text")
sleep(1000)
loop


if the title is only one text one can use triggers to blink too (overlay on/off) ;-)


Thanks, Everything started
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.