www.homeseer.com

Go Back   HomeSeer Message Board > User Interface Support > Touchscreen Plug-ins > MainLobby (3P)

MainLobby (3P) Discussions related to the MLHSPlugin: MainLobby-HomeSeer Two-Way Communication 3rd party Plug-In for HomeSeer

Reply
 
Thread Tools Display Modes
  #1  
Old October 31st, 2009, 09:43 AM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 298
Default Simple script command - syntax issue?MLServeCMD.

I am trying to set some variables from a script. For the life of me I can't seem to get the syntax correct to make it work! I have tried this:

hs.plugin("MLHSPlugin").MLServeCMD "MLServeCMD.SetVariable|radio_nowplayingtrackplaying_1_kitche n~0"

and this:

hs.plugin("MLHSPlugin").MLServeCMD "MLServeCMD.Macro|SetVariable|radio_nowplayingtrackplaying_1_ kitchen~0"

I have looked through all of the documentation and the forum and I see both forms being used. But it doesn't work so I must be doing something wrong?

Thanks.
Reply With Quote
  #2  
Old October 31st, 2009, 01:02 PM
Krumpy's Avatar
Krumpy Krumpy is offline
Super Seer
 
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 1,999
Default

Syntax appears to be correct.

Have you looked at the logs? What happens?
Reply With Quote
  #3  
Old October 31st, 2009, 02:03 PM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 298
Default

Ar both forms correct? I found my issue - I'm an idiot - I wasn't calling the right subroutine.

Last edited by simonmason; October 31st, 2009 at 03:09 PM.
Reply With Quote
  #4  
Old November 1st, 2009, 09:27 AM
Krumpy's Avatar
Krumpy Krumpy is offline
Super Seer
 
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 1,999
Default

Yes, both are ok.

Your first example is how you would call a MLServeCMD with just one statement.

The second is a macro. So you can concatinate multiple MLServeCMD's together into one statement. You would need to separate them using the ! character.

Make sense?

hs.plugin("MLHSPlugin").MLServeCMD "MLServeCMD.Macro|SetVariable|radio_nowplayingtrackplaying_1_ kitchen~0!Setvariable|myvar~value!SetVariable|third~value"
Reply With Quote
  #5  
Old November 1st, 2009, 10:11 AM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 298
Default

Makes sense now, first command is obviously much easier!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:38 AM.


Copyright 1998-2008 HomeSeer Technologies, LLC