No, the device value and device string will only update together when the script is run.
Here is something to think about. Why not write the cost data directly to my ini file using the TextAfterValue= entry.
Run my script then run your script and then mine again. You will then see it in the virtual device as up-to-date data. Remember to use a <br> tag first to show your data on a new line in the virtual device.
i.e.
hs.SaveIniSetting ("Device1","TextAfterValue","<br>" & costdata,"Jon00Uptime.ini")
Here is something to think about. Why not write the cost data directly to my ini file using the TextAfterValue= entry.
Run my script then run your script and then mine again. You will then see it in the virtual device as up-to-date data. Remember to use a <br> tag first to show your data on a new line in the virtual device.
i.e.
hs.SaveIniSetting ("Device1","TextAfterValue","<br>" & costdata,"Jon00Uptime.ini")
Comment