logo

Live Production Software Forums


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

Notification

Icon
Error

6 Pages«<456
Options
Go to last post Go to first unread
doggy  
#101 Posted : Wednesday, May 26, 2021 11:13:59 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,136
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 567 time(s) in 466 post(s)
Have more variables into 1 DynamicValue and select them by their position(number) and update


Code:
API.Function("SetDynamicValue1",Value:="value1,value2,value3,value4")

dim xml as string = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)
dim MyValues as string = (x.SelectSingleNode("//dynamic/value1").InnerText)

dim MyVals() as string = MyValues.Split(",")

For i As Integer = 0 To MyVals.Length - 1
Console.WriteLine(MyVals(i))
Next

'replace one of the values
MyVals(1) = "Cat"

'save the updated values
Dim result As String = String.Join(",", str2)
API.Function("SetDynamicValue1",Value:=result )

endiaer  
#102 Posted : Monday, June 7, 2021 3:33:35 PM(UTC)
endiaer

Rank: Member

Groups: Registered
Joined: 1/6/2014(UTC)
Posts: 11

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
Launch external application

Code:
'Launch an application and resume the script  when  app is closed 
Dim P As New Process
    P = Process.Start("notepad.exe")
    P.WaitForExit()


'Launch an application (example notepad with specified existing file)
Dim ExtApp As New ProcessStartInfo
ExtApp.FileName = "notepad.exe"
ExtApp.Arguments = "d:/demo.txt"
ExtApp.UseShellExecute = True
ExtApp.WindowStyle = ProcessWindowStyle.Normal
Dim proc As Process = Process.Start(ExtApp)





I need to run .bat file please help!
doggy  
#103 Posted : Monday, June 7, 2021 6:41:29 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,136
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 567 time(s) in 466 post(s)
Originally Posted by: endiaer Go to Quoted Post


I need to run .bat file please help!


Just replace the notepad.exe with your xxx.bat file (first example)
thanks 1 user thanked doggy for this useful post.
endiaer on 6/19/2021(UTC)
endiaer  
#104 Posted : Saturday, June 19, 2021 6:35:24 PM(UTC)
endiaer

Rank: Member

Groups: Registered
Joined: 1/6/2014(UTC)
Posts: 11

Thanks: 1 times
Helo, is it possible to trigger something based on a certain time value in the timer? my timer is 10:00 minutes and i want to make a script to start streaming at the left 01:00. Thank you.
doggy  
#105 Posted : Saturday, June 19, 2021 7:05:29 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,136
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 567 time(s) in 466 post(s)
Originally Posted by: endiaer Go to Quoted Post
Helo, is it possible to trigger something based on a certain time value in the timer? my timer is 10:00 minutes and i want to make a script to start streaming at the left 01:00. Thank you.


Sure read the current displayed time within the title from the API XML and code your decision and commands based on that . How to get that info (time) has been addressed in previous posts here
Users browsing this topic
6 Pages«<456
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.