Sorry about that.
Code:
Sub Main(parm as object) dim aVal() as string dim sVal as string sVal = hs.deviceString("[2") aVal = split(sVal, ">") hs.writelog ("Test",aVal(1)) ' You can assign the aVal(1) to a virtual device hs.setDeviceString("V1", aVal(1)) End Sub
Comment