Author Topic: Configuring Elk phone ring sensor during limited period.  (Read 4723 times)

Deane Johnson

  • Sr. Member
  • ****
  • Posts: 271
    • View Profile
Re: Configuring Elk phone ring sensor during limited period.
« Reply #15 on: April 03, 2012, 06:25:50 pm »
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.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Configuring Elk phone ring sensor during limited period.
« Reply #16 on: April 03, 2012, 08:32:26 pm »
You need to add a semicolon to the end of the script line.
John Hughes
Codecore Technologies

Deane Johnson

  • Sr. Member
  • ****
  • Posts: 271
    • View Profile
Re: Configuring Elk phone ring sensor during limited period.
« Reply #17 on: April 04, 2012, 03:20:20 am »
 ;D Added the semicolon and put it through a cycle with no error messages.  All worked as expected.

Thanks for hanging in there with me once again.




John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Configuring Elk phone ring sensor during limited period.
« Reply #18 on: April 04, 2012, 09:39:14 am »
Great!

I tested adding a Set Variable Value line to the action list using the point and click menus (without entering script) and it does work so I think you just doubled up the command within itself before.

Adding script directly to the action list is fine for advanced users but I generally don't recommend it for users who are not familiar with javascript.
John Hughes
Codecore Technologies

Beauraraffome

  • Sr. Member
  • ****
  • Posts: 276
    • View Profile
Vintage Nudes # 9681
« Reply #19 on: July 02, 2017, 08:03:25 am »
Vintage Italian Pornretro hairy porn double eighties penetration with a prisoner
Classic porn titles you won't find in stores these days!Of course vintage porn can't boast with millions of pics as the modern adult industry can but that's what makes our repro porn collection so unique. We did a really great job to collect these 40K vintage photos and 300+ videos. We really handpicked them sure that you deserve only the best, really number 1 vintage pics and movies. We'll be happy if you appreciate our efforts!
 
Vintage Porn Tube
 
http://traci-lords-porn.com/
 



 
Linda Parker
There is no video hotter than a retro vintage one. Not to be missed!

Beauraraffome

  • Sr. Member
  • ****
  • Posts: 276
    • View Profile
Classical Sex # 9577
« Reply #20 on: July 02, 2017, 08:09:27 am »
Vintage NudePatrick Marin
Check out TheClassicPorn for outstanding porn gems of the 80s and even older! Unbeatable gems of classic hardcore action are brought to you inVintage pornography on video. So exciting!
 
Vintage Porn Tube
 
http://traci-lords-porn.com/
 



 
hardcore medieval sex classic girl pleasing three dicks
Classic @#&%! sucking, @#&%! screwing, and more!