vMix Forums
»
General
»
Feature Requests
»
Feature that gets immediate response for code issue that adds timestamps
Rank: Newbie
Groups: Registered
Joined: 4/7/2022(UTC) Posts: 5 Location: Woodwark
|
I cant see where to go from here?
Hey man,
Cant get the code to work, can i get your assistance?
Starting Script "Timestamp" Script 'Timestamp' Error Line 8: Object reference not set to an instance of an object. Stopping Script "Timestamp"
Originally Posted by: elgarf Go to Quoted Post You can use script if you have 4K or Pro version.
Code: 'Text file for time marks dim FILENAME = "D:\out.txt"
'Get recording duration dim xml = API.XML() dim x as new system.xml.xmldocument x.loadxml(xml) dim Duration = integer.parse((x.SelectSingleNode("//recording/@duration").Value))
dim Second = math.floor(Duration mod 60) dim Minute = math.floor((Duration / 60) mod 60) dim Hour = math.floor((Duration / (60 * 60)) mod 60)
'Write recording duration to file System.IO.File.AppendAllText(filename, string.format("{0:00}:{1:00}:{2:00}"&Environment.NewLine, Hour, Minute, Second))
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
if you are going to keep posting the same question in different posts ( as you claim in the hope of getting an answer faster) without reading the answer given in one of them you run the risk of being banned from this forum for spamming
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/7/2022(UTC) Posts: 5 Location: Woodwark
|
Its more about the title Originally Posted by: doggy if you are going to keep posting the same question in different posts ( as you claim in the hope of getting an answer faster) without reading the answer given in one of them you run the risk of being banned from this forum for spamming
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/5/2020(UTC) Posts: 91 Location: Jakarta Thanks: 17 times Was thanked: 5 time(s) in 3 post(s)
|
Hi Nicholas, You need to test the XML returned by vMix. As far as I remember we have "vmix" as root node, you can't find the other node if you don't use the root node. I suggest you to test it with Console.WriteLine and do some research from the Google. If it is related to VB.NET basic, I think we shouldn't ask here. Probably you can ask in this thread instead: Scripting for DummiesDoggy is expert in this :)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: gpdipalmerahtimur Hi Nicholas, You need to test the XML returned by vMix. As far as I remember we have "vmix" as root node, you can't find the other node if you don't use the root node. I suggest you to test it with Console.WriteLine and do some research from the Google. If it is related to VB.NET basic, I think we shouldn't ask here. Probably you can ask in this thread instead: Scripting for DummiesDoggy is expert in this :) OP should not be an ** by make several new duplicate posts about this and read the answer given where he originally asked the question Can't find a node if it is not there ;-) https://forums.vmix.com/posts/m101117-Timecode-Marker-Hotkey#post101117that's 3 different posts : this one , the link above and this https://forums.vmix.com/posts/t28839-Cant-get-Code-to-work
|
|
|
|
vMix Forums
»
General
»
Feature Requests
»
Feature that gets immediate response for code issue that adds timestamps
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