I have a simple Action in an Event to run a one line script to create an entry in the log as follows:
&hs.writelogEx("UPS Update","UPS: "& hs.devicestring("u50")& hs.devicestring("u54"),"#FF00FF")
The log entry is: UPS: 100% Battery Capacity39 Minutes Runtime Left
What I'd like to do is add a space, or comma, or dash or something to separate the output for u50 and u54, so it looks something like this:
UPS: 100% Battery Capacity, 39 Minutes Runtime Left
I can't work out how to do this, or even if it can be done. Can anyone please help point me in the right direction?
Many thanks.
&hs.writelogEx("UPS Update","UPS: "& hs.devicestring("u50")& hs.devicestring("u54"),"#FF00FF")
The log entry is: UPS: 100% Battery Capacity39 Minutes Runtime Left
What I'd like to do is add a space, or comma, or dash or something to separate the output for u50 and u54, so it looks something like this:
UPS: 100% Battery Capacity, 39 Minutes Runtime Left
I can't work out how to do this, or even if it can be done. Can anyone please help point me in the right direction?
Many thanks.
Comment