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
To post a script, please use the "code" or "script" bbcode tags.

For the languages that ATVO supports, the script language is usually automatically detected. Sytnax highlighting (colors) are applied automatically based on the detected script language.

Example: C# script
public class Script : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
var entity = (IEntity) item;
if (entity.CurrentDriver.Id = 12345)
return entity.CurrentDriver.Name;
return "";
}
}