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,125
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 563 time(s) in 462 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: 10

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,125
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 563 time(s) in 462 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)
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.