View Full Version : Trying to set zone with LUA - failing miserably!
Mastiff
January 17th, 2005, 01:42 AM
I have this action under function OnCCFLoad():
NetRemote.ExecuteAction(-10,2,255,'MP.ZONE,Stua',1);
That doesn't do anything. On the other hand, with this action:
NetRemote.ExecuteAction(-10,2,255,'X NEXTZONE',1);
it goes to the next zone. Why doesn't the first one work? I'm trying to make JRMC CCFs for different zones, so Kevin can put on music on his room, but not in the living room and so on. Having this in the LUA script would save button presses since Kevin would come straight to JRMC in his zone. Help would be appreciated.
Ben S
January 17th, 2005, 05:25 AM
Please try the following:
NetRemote.ExecuteAction(-10,2,255,'S MP.ZONE Stua',1);
The reason the first doesn't work is that the 2,255 command allows you to issue a MediaBridge protocol command directly. This protocol has been documented (though not revised recently), but is not (currently) available to the public. Let me talk to the guys about whether this information is okay to full release.
Mastiff
January 17th, 2005, 05:33 AM
That doesn't seem to do anything. I have it in onccfload, but when I start NetRemote with a ccf that has JRMC on the first page, it goes to the active zone, without even showing the variable for the zone Stua.
Ben S
January 17th, 2005, 05:47 AM
Try adding it to a button (instead of to OnCCFLoad), for now.
Mastiff
January 17th, 2005, 05:56 AM
:oops: :oops: :oops: OK, the IR code for LUA is 5001 0000 0000 0002 fc19 0007 0000 0000 , right? Then I put the string
NetRemote.ExecuteAction(-10,2,255,'S MP.ZONE Stua',1); in the IR name? At least here nothing happens...probably because I made a stupid mistake in one of those steps.
Ben S
January 18th, 2005, 06:46 PM
Or you could use :
5001 0000 0000 0002 fff6 0002 00FF 0000
with ir name "S MP.Zone Stua"
If this doesn't work, then it's broken (duh), and I'll fix it.
Mastiff
January 18th, 2005, 11:37 PM
OK, this one you're gonna love: When using this version it sets the correct zone, and I see cover and playing now from the correct zone...what doesn't change is the button with {MP.Zone} as the name, that should show the correct zone! :lol:
But putting that one and the older version with 5001 0000 0000 0002 fc19 0005 0001 0000 and MP.Zone,Stua on the same button actually does the trick! Now if only one of them could be used... I assume it's something about setting the variable correctly. The older version only set the variable, the newer version only sends the variable change to JRMC.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.