It's under Tools->Preferences->Background Items->Enable Background Sequence
The background sequence delay determines how long Vixen will wait for inactivity before it starts the script.
And you have to set the background sequence to run under Sequence->Set background sequence.
Yeah, all that is set right. The delay is set to default 10 sec.
I'm gonna reboot everything again.
Well, it's just not starting the script, that I can tell. The appointed time passes and nothing happens.
I have Vixen running. There is no sequence up, just a blank screen. I get no errors. Just nothing. Here is the simple script I'm using now.
void Start() {
Off(All);
DateTime now = DateTime.Now; //get the current time
ChannelCollection normalLights;
normalLights = Channels(TreeGroup1, TreeGroup2, Tree1, Tree2, Tree3, Tree4, Tree5, Tree6, Bushes1, Bushes2, Bushes3, Bushes4, PorchPost1, PorchPost2, PorchPost3, PorchPost4, PorchPost5, PorchPost6, Icecycle1, Icecycle2, Icecyles3, Icecyles4, Channel_64, Door_Trees);
//The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS)
DateTime start = new DateTime(now.Year, now.Month, now.Day, 13, 45, 00);
DateTime end = new DateTime(now.Year, now.Month, now.Day, 13, 46, 00);
//We only want the channels to turn on while the current time is
//between 5:30 and 11 pm
while (now.CompareTo(start) >= 0 && now.CompareTo(end) <= 0)
{
On(normalLights, At(100));
now = DateTime.Now; //update the current time
}
Off(All,For(1).Second,Wait);
}
The script won't open a window. The bottom left corner of the Vixen window will show a progress bar and if you hover over it, it will say the background script is running. Even when your lights are not on - e.i. you are in the outer loop, the script should be running...
Oh, I just read your script again - Yeah, it is running, and exiting almost immediately. You need to add that outer loop to keep the script running, even outside the inner lopp run times....
This is maddening! This script ran perfectly last night. Now it won't even start??
Frustrating:confused:
Sorry--Here's the script. Like I said it ran perfectly last night.
void Start() {
Off(All);
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, 26, 39, 00);
DateTime end = new DateTime(now.Year, now.Month, now.Day, 26, 42
, 00);
//We only want the channels to turn on while the current time is
//between 5:30 and 11 pm
while (now.CompareTo(start) >= 0 && now.CompareTo(end) <= 0)
{
On (Channels(Tree1), At(100));
now = DateTime.Now; //update the current time
}
Off(All,For(1).Second,Wait);
}
When you set a background sequence, how long is it before Vixen polls to start that sequence?
I set a sequence and never see the "progression window" in the lower left. I have seen it run, but not lately.
If I set my script as the background sequence, I have to manually start it and then stop it. After that it comes on and runs as it should.
Anyone have any advice??
I have another question regarding scripts (as if I didn't have enough trouble). Can a script call a sequence?
I don't use scripts, but I've been following threads related to them for quite some time. Therefore, take these thoughts with a sufficiently large grain, or even rock of salt!
Vixen has timers for various "delayed action" events. I suspect that the timers need to be restarted/reinitialized after editing or creating a script. My guess is that internally, there's a basic timer that's started when Vixen is initially opened and after that, unless it's restarted, it may not be sensitive to script changes.
It's just a hunch... maybe it will work for you.

