Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
I don't know if you can do a Find on a label in a Ticker like that. Tickers behave differently as each copy of the template subwidget is a separate copy that's not otherwise connected to the theme. It may work, or it may not.

Can you check if your "label" variable is valid? Are you getting errors during execution? You can add a log statement and check the event log:
var label = subwidget.Labels.Find("L_Tower_Temp");
if (label == null) Console.WriteLine("Label not found");


If that is the case, you can try getting the label by its index using the following. You'll need to ensure the order of the labels remains the same though (or update the script). Assuming it's the 4th label (index 3):
var label = subwidget.Labels[3];