I do not find the "Generate a report..." icon. All I find is the "Copy to Clipboard" icon which is the one that will not allow me to paste anywhere but to an Action List.
I deleted the Set Variable Action completely as you suggested and re-pasted the one you provided in a new Script.
My initial testing shows it is working as expected and that there are no error messages showing up while the Theater On was activated.
The Action list for Theater On now looks like this:
lighting.TurnOnLight(21);
lighting2.TurnOffLight(111);
ir.AV7005.ON();
lighting2.TurnOnLight(196);
lighting2.TurnOnLight(148);
lighting.TurnOnLight(22);
lighting.TurnOnLight(20);
Scenes.Easyrisealldown();
lighting.SetLightLevel(4, 60);
vars.SetVariableValue("PhoneRing", true)
However, when the Theater Off is activated, even though the Rule is disengaged as expected, the following error messages occurs which seems to relate to the first thing on the Action List. If I change the first thing, that Action then appears in the error. "Button 21" is the Theater Off button:
Date: 4/3/2012
Time: 8:17 PM
Severity: Error
Source: MasterService
Computer: DEANE
Context Type: Script
Context Name: TouchScreen.Button21.OnMouseClick
Description:
An error occurred while executing the script TouchScreen.Button21.OnMouseClick.
ScriptEvaluatorException: ; expected
CodecoreTechnologies.Elve.DriverFramework.Scripting.ScriptEvaluatorException: ; expected
at Common.ScriptEvaluator.ScriptEvaluator.ensureEndOfStatement()
at Common.ScriptEvaluator.ScriptEvaluator.evaluateBlock()
at Common.ScriptEvaluator.ScriptEvaluator.evaluate(ScriptParser parser, ScriptVariableCollection variables, GlobalFunctionEvaluatorDelegate globalFunctionEvaluator, ScriptObjectTypeInfoCollection objectInfos, ScriptFunctionInfoCollection scriptFunctionInfos)
at Common.ScriptEvaluator.ScriptEvaluator.Evaluate(ScriptParser parser, ScriptVariableCollection variables, GlobalFunctionEvaluatorDelegate globalFunctionEvaluator, ScriptObjectTypeInfoCollection objectInfos, ScriptFunctionInfoCollection scriptFunctionInfos)
at Common.ScriptEvaluator.ScriptEvaluator.Evaluate(String s, ScriptPosition position, ScriptVariableCollection variables, GlobalFunctionEvaluatorDelegate globalFunctionEvaluator, ScriptObjectTypeInfoCollection objectInfos, ScriptFunctionInfoCollection scriptFunctionInfos)
at Common.ScriptEvaluator.ScriptEvaluator.Evaluate(String s, ScriptVariableCollection variables, GlobalFunctionEvaluatorDelegate globalFunctionEvaluator, ScriptObjectTypeInfoCollection objectInfos, ScriptFunctionInfoCollection scriptFunctionInfos)
at Common.ScriptEvaluator.ScriptEvaluator.Evaluate(String s, ScriptVariableCollection variables, GlobalFunctionEvaluatorDelegate globalFunctionEvaluator, ScriptObjectTypeInfoCollection objectInfos)
at Common.ScriptEvaluator.ScriptEvaluator.EvaluateNow(String s, ScriptVariableCollection variables, GlobalFunctionEvaluatorDelegate globalFunctionEvaluator, ScriptObjectTypeInfoCollection objectInfos)
at MasterService.ScriptRunner.RunNow(String scriptName, String script, ScriptVariableCollection extraScriptVariables, Boolean throwError)
Location in script: line 1, column 1.
lighting2.TurnOnLight(@"J", 6);
^
I had simply taken the Script you provided for the purpose of turning it to "true" and changed the word to "false". It seems to function correctly, but provides the above error message.
To reemphasize, the testing so far indicates that in practice, nothing is malfunctioning, only the error message is appearing.
It's getting late at this end and I'm getting punchy, but I believe I've included everything.