chlore
April 13th, 2011, 05:19 AM
I have a function who need to know which page/page group is actually displayed
I use "NetRemote.GetElementByName"
This is ok for only one page : the first created. For al others I have a "nil" return
function DisplayMessage(text, delay)
NetRemote.SetVariable('NR.Msg',text );
NetRemote.SetVariable('NR.DispMsg', '1');
hg=NetRemote.GetElementByName(NetRemote.GetVariabl e('NR.DeviceName')) ;
print(hg,NetRemote.GetVariable('NR.DeviceName'));
TimerMessage = NetRemote.SetTimer(duree, MessageTimer);
end;
"hg=NetRemote.GetElementByName(NetRemote.GetVariabl e('NR.DeviceName'))" return nil but if device name is "TV"
"NR.DeviceName" return always the good device name
I use "NetRemote.GetElementByName"
This is ok for only one page : the first created. For al others I have a "nil" return
function DisplayMessage(text, delay)
NetRemote.SetVariable('NR.Msg',text );
NetRemote.SetVariable('NR.DispMsg', '1');
hg=NetRemote.GetElementByName(NetRemote.GetVariabl e('NR.DeviceName')) ;
print(hg,NetRemote.GetVariable('NR.DeviceName'));
TimerMessage = NetRemote.SetTimer(duree, MessageTimer);
end;
"hg=NetRemote.GetElementByName(NetRemote.GetVariabl e('NR.DeviceName'))" return nil but if device name is "TV"
"NR.DeviceName" return always the good device name