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

Login:
Pass:
 
 

Topic:
Prontoscript not working after migration to PeP2
This thread has 11 replies. Displaying all posts.
Post 1 made on Wednesday January 14, 2009 at 10:10
Ralph P.
Long Time Member
Joined:
Posts:
March 2006
35
Greetings,

I have looked and have been unable to locate an answer. I have a simple rotary wheel script that controls the volume on my Denon. I recently downloaded The latest PeP software and wanted to try using it. For some reason the rotary wheel volume script doesn't work with PeP2. It works fine with PeP 1.1.

Is there something that I should have addressed differently going from one to the other?

Thanks.
Regards,

Ralph
Post 2 made on Wednesday January 14, 2009 at 11:30
flattermann
Long Time Member
Joined:
Posts:
December 2008
16
Do you get an error in the ProntoScript Console of the PEP2 Simulator?
OP | Post 3 made on Wednesday January 14, 2009 at 12:28
Ralph P.
Long Time Member
Joined:
Posts:
March 2006
35
On January 14, 2009 at 11:30, flattermann said...
Do you get an error in the ProntoScript Console of the
PEP2 Simulator?

I don't see one. The wheel works for volume control but only when I have the Denon selected. It worked with all of my other devices just fine using PeP1.1. I am using the button based script that I found mentioned here.
Regards,

Ralph
Post 4 made on Wednesday January 14, 2009 at 16:31
Peter Dewildt
Loyal Member
Joined:
Posts:
July 2001
6,307
Did you get any errors when you downloaded your config to your Pronto?
Peter
Pronto 1000 (retired), Pronto TSU7000, RFX6000 (retired)
Pronto 2xTSU9600, RFX9400
Post 5 made on Wednesday January 14, 2009 at 17:18
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Ralph,

Can you paste the script here? Maybe it is an XML encoding issue...

Also, can you wrap the script with a try/catch block and log any errors you might have to diagnostics log?

I suspect you have compilation errors on the page. One way to tell is from PEPV2, copy the potential offending script and paste into a text file. Then, run this text file through a tool such as JSLint.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 6 made on Wednesday January 14, 2009 at 19:15
Ralph P.
Long Time Member
Joined:
Posts:
March 2006
35
Lyndel,

I feel like a boob but how do you copy and paste? When I try right clicking on the script in PEP it does nothing..

sigh..

Regards,

Ralph
Post 7 made on Wednesday January 14, 2009 at 19:19
flattermann
Long Time Member
Joined:
Posts:
December 2008
16
Mark the script (or press CTRL-A to mark the whole script) and copy it by using CTRL-C.
After that, paste it here by pressing CTRL-V.
OP | Post 8 made on Thursday January 15, 2009 at 04:47
Ralph P.
Long Time Member
Joined:
Posts:
March 2006
35
Thanks flatterman.

Okay here it is:

onRotary = function(clicks)
{
if (clicks > 1)
{CF.widget("Volumeup","WidgetPage").executeActions();}
if (clicks < -1)
{CF.widget("Volumedown","WidgetPage").executeActions();}
};

Each of my devices has a hidden WidgetPage with the script names. I have a hidden device that contains buttons that correspond to the volume control codes in my database. This works fine in PEP 1.1. In PEP 2 (the latest version) the rotary whhel only works when the Denon is the selected device.
Regards,

Ralph
Post 9 made on Thursday January 15, 2009 at 11:16
flattermann
Long Time Member
Joined:
Posts:
December 2008
16
Well, the code looks fine (although I would change the second "if" to an "else if", but that will not really make a difference).

Have you tried to un-hide the "WidgetPage" of your devices and press the "Volumeup" / "Volumedown" buttons manually? Does this work?
OP | Post 10 made on Thursday January 15, 2009 at 12:08
Ralph P.
Long Time Member
Joined:
Posts:
March 2006
35
I got it working. Rather than using a separate hidden device and referencing it from my other sources I just created a hidden page within each of my devices and placed the widgets there.

Thanks for everyone's input !

Regards,

Ralph
Post 11 made on Thursday January 15, 2009 at 12:17
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
That must mean that in PEPV1, the device in which you had the hidden page contained codes for multiple "components". It is likely that during migration, PEP2 could not figure out to which real component (Denon vs DVD) your codes belonged to.

So, the solution you chose was a good one as in PEP2, you likely have a component assigned at the "device/activity" level.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 12 made on Thursday January 15, 2009 at 13:20
Ralph P.
Long Time Member
Joined:
Posts:
March 2006
35
That sounds good Lyndel. Thanks again..
Regards,

Ralph


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse