Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 10 made on Wednesday May 15, 2024 at 20:20
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,060
OK. This has something to do with the PS_XXXXX names being reserved even in Macro categories. Looks like the widgets (yes, macros are buttons on a Macro Category page made to look like they are not really an Activity as there are no Firm/Hard buttons supported there) with reserved names are having actions stripped during download to simulator and remote for some reason.

I changed the macro's prontoscript name to PS_FIRM3_OVERRIDE and things seem to work reliably.

Send me an email an I'll send you the file.

In short. Instead of having your Reusable Macro have a ProntoScript name of "PS_FIRM3", change it to "PS_FIRM3_OVERRIDE"

Then, use this function

System.setDebugMask(9);
function doSomethingAndExecute () {
// at the time doSomethingAndExecute is called, Javascript
// 'this' will be the button widget you just pressed (firm1, firm2, firm3, etc)
System.print("abc easy as 123 tag:" + this.tag);
// Load the widget from reusable macros based on the current button's tag.
// These can be executed or scheduled.
var w = CF.widget(this.tag + "_OVERRIDE", "MIKEG_MACROS", "PS_MACROS");
if (w) w.scheduleActions();
}

Last edited by Lyndel McGee on May 15, 2024 20:27.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse