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

Login:
Pass:
 
 

Page 2 of 2
Topic:
Help with Prontoscript
This thread has 19 replies. Displaying posts 16 through 20.
Post 16 made on Monday July 20, 2020 at 18:04
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,633
You said you created library JS files.

Did you create the namespaced objects with top-level variable named 'com'? If not ignore the post.

If you would like more info, see page 48 of the Dev Guide 1.4.3.

There's an example there.

This would be how you eliminate variable name collisions where 2 libraries internally use a variable named 'socket' which is what I think you already noticed in your config file.

Last edited by Lyndel McGee on July 20, 2020 18:24.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 17 made on Monday July 20, 2020 at 18:27
mpg7321
Regular Member
Joined:
Posts:
June 2020
56
Thanks, will look at those pages. And yes, I did not use a top-level variable named "Com"

As stated I did change the variables so the two scripts now work. I'm OK with how I did it, for I used variable names that match the device I am controlling.
Post 18 made on Monday July 20, 2020 at 18:59
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,633
Perfect. ;-)

I just got time to review your DirectTV code from the config you had sent me and noted that the library you defined did not use the 'com' namespacing.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 19 made on Monday July 20, 2020 at 19:28
mpg7321
Regular Member
Joined:
Posts:
June 2020
56
That is an older library as well. Been cleaning up my config files. Do you have any recommendations for the Directv code?
Post 20 made on Tuesday July 21, 2020 at 19:03
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,633
If you dont have to have a response, the make the Socket code asynchronous and have the button call a sendCommand function like the example i provided.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Page 2 of 2


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