Background scripts ...
 
Notifications
Clear all

Background scripts MAKE HULK MAD!!!

11 Posts
3 Users
0 Reactions
3,703 Views
Posts: 87
(@tfmacz)
Estimable Member
Joined: 19 years ago

So I have this running in the background on my vixen box.
Vixen 2.5.0.8

When setting up a Vixen Script you have a number of steps that are not obvious.
With the script editor open,
You need to check "Script > Modules > Standard.dll"
Import the Channel List "Script > Import Channels >(pick a sequence that has the channels you want)"
Select the plug-ins you need "Script > Attached plugins > (select your interface plugins)

Write your script
then "Script > Compile" will check for errors
"Script > Compile and execute" will compile and run the script.
Don't forget to save the script often. "Sequence > Save (or Save As)"

I use this background to turn on a couple strings as NightLites When nothing else is running this runs automatically

Note everything after the "//" on a line is a comment.

Ted

void Start() {
Off (All);
while (true){

DateTime now = DateTime.Now; //get the current time

//The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS)
DateTime start = new DateTime(now.Year, now.Month, now.Day, 08, 00, 00);
DateTime end = new DateTime(now.Year, now.Month, now.Day, 16, 00, 00);

//We only want turn everything off while the current time is
//between 8:00 am and 4:00 pm
while (now.CompareTo(start) >= 0 && now.CompareTo(end) <= 0)
{
Off ((All), For (5).Minutes, Wait);

now = DateTime.Now; //update the current time
}

On (Channels(House_Eve_White, Garage_Eve_White, Tower_Star), At (40), For (5).Minutes, Wait);

continue;
}
}


Reply
Page 2 / 2
Share: