Page 1 of 1
Read a ContextID in a scrip
Posted: Thu Sep 03, 2009 5:58 pm
by cgrenzel
Hello.
Is there a way to get the Current Context ID in script?
I tried codes such as:
Variable = GetContextID
Variable = "" & ContextID & ""
with no success.
Thanks!
Re: Read a ContextID in a scrip
Posted: Fri Sep 04, 2009 7:21 am
by Richard Naninck
As far as I know, you can't get the context in a script. The only context related command that can be used from a script is this:
Function: OpenRemotePanel
Opens the specified Panel on all Software Remotes.
Syntax ReturnCode = OpenRemotePanelAndSetContext( "Panel Name", "ContextID" )
Parameter1 Specifies the name of the Panel to open.
Parameter2 Specifies the name of the context ID to apply to the Panel that is being opened.
Return Value Currently, this function always returns True.
Sample OpenRemotePanelAndSetContext "Panel 1", "Living Room Context"
Re: Read a ContextID in a scrip
Posted: Fri Sep 04, 2009 10:06 pm
by ScottBot
Richard is right; you can't get the context id from a script (or any other way). Context is relative to a particular panel and since you can have multiple panels open at a time there is no one context to get.