|
|
|
The following page was printed from RemoteCentral.com:
Topic: | Philips has posted new firmware, V.4.0.17 This thread has 34 replies. Displaying posts 16 through 30. |
|
Post 16 made on Saturday January 19, 2008 at 06:20 |
sgtoma Long Time Member |
Joined: Posts: | December 2007 73 |
|
|
Thank you Lyndel for spotting it. I assumed that he wouldn't modify the properties of Page+/-
|
|
Post 17 made on Saturday January 19, 2008 at 11:08 |
CBD Long Time Member |
Joined: Posts: | April 2006 14 |
|
|
Sorin/lyndel Thanks for the help, I have input Sorin's code into a practice config and it works I have been trying different ex. from the Dev. Guide. In regards to the two buttons I have created a resources device,actions page and left & right buttons put actions to the buttons and labeled them in prontoscipt (buttons,pages and device) when you say uncomment the other lines I have tried to figure that out with no luck, I am just trying to understand that so if I want to change the Page +/- butons I can! Thanks So Much Guys CBD
|
|
Post 18 made on Saturday January 19, 2008 at 11:18 |
sgtoma Long Time Member |
Joined: Posts: | December 2007 73 |
|
|
A "comment" is ignored by JavaScript when executing: // or /*---*/ CF.widget("LEFT", "ACTIONS", "RESOURCES").executeActions(); [Link: tizag.com]When in doubt, fishing in the Google Lake might be very productive ;) Sorin
|
|
Post 19 made on Saturday January 19, 2008 at 11:22 |
CBD Long Time Member |
Joined: Posts: | April 2006 14 |
|
|
Makes Sense, Again thanks for your guys help! I will keep on plugging CBD
|
|
Post 20 made on Sunday January 20, 2008 at 15:32 |
agr1277 Lurking Member |
Joined: Posts: | January 2008 7 |
|
|
I'm new at this and I don't know much about coding. I was able to get the scroll wheel working with this code: onRotary = function(clicks) { if (clicks > 0) { GUI.widget("PS_CURSOR_DOWN").executeActions(); } if (clicks < 0) { GUI.widget("PS_CURSOR_UP").executeActions(); } };
This works great to scroll through the Internet radio stations. I would like to implement the acceleration function that is given in the guide. Could someone help me to get the scroll wheel to accelerate? I don't know how to do it. Let me know if any further info is needed. Thanks.
|
|
Post 21 made on Sunday January 20, 2008 at 19:01 |
Bigk200 Long Time Member |
Joined: Posts: | March 2005 17 |
|
|
For those of you who have successfully tested code for the rotary wheel, where is the code supposed to be stored? The rotary wheel in the current version of ProntoEdit does not allow selection of rotary wheel in the "Device Properties" page, so is the code placed within the "Advanced" tab of the page where scrolling is desired? And if this is where the code is placed, should the "Repeat Every XX secs" box be checked?
|
|
Post 22 made on Sunday January 20, 2008 at 20:09 |
Barry Gordon Founding Member |
Joined: Posts: | August 2001 2,157 |
|
|
Scrolling is activity level based so I always put it at the activity level. If I want different actions by page I put a test on the predicate CF.page().tag=="pageTag" to select the different page oriented actions.
Another approach is just to call a function on every page passing the click count. If that page does not do anything with the scroll wheel just return, otherwise do what is pertinent for that page re the scroll wheel.
|
|
Post 23 made on Sunday January 20, 2008 at 20:57 |
Sylvain Founding Member |
Joined: Posts: | January 2002 294 |
|
|
On January 20, 2008 at 19:01, Bigk200 said...
For those of you who have successfully tested code for the rotary wheel, where is the code supposed to be stored? The rotary wheel in the current version of ProntoEdit does not allow selection of rotary wheel in the "Device Properties" page, so is the code placed within the "Advanced" tab of the page where scrolling is desired? And if this is where the code is placed, should the "Repeat Every XX secs" box be checked? Thanks to agr1277, it was easy to copy his script into the "advanced tab" of the "device properties" pages of where I wanted it (although I preferred to reverse the UP and DOWN commands). Note there is no "repeat" checkbox at that level. I am now very happy to (finally) be able to use the jog wheel but, as mentioned by "agr1277", I would like some kind of acceleration function though. Does that exist?
|
|
Post 24 made on Sunday January 20, 2008 at 21:42 |
brettd Lurking Member |
Joined: Posts: | January 2008 6 |
|
|
For accelleration, there is a long winded one in the developer guide, but something ike these should work: NOTE: I don't have a pronto with me so there may be a syntax error somewhere in here. // Rotary with exponential accelleration onRotary = function(clicks) { var multBy = (clicks < 0) ? -1 : 1; clicks = Math.abs(clicks); if (clicks > 2) clicks = parseInt( (Math.exp(clicks-1))/(clicks-1)); clicks *= multBy; // now do what you want with clicks... }
// Rotary with 2 speed accelleration onRotary = function(clicks) { var multBy = (clicks < 0) ? -1 : 1; clicks = Math.abs(clicks); if (clicks >= 6) clicks *= 3; else if (clicks >= 3) clicks *= 2; clicks *= multBy; // now do what you want with clicks... }
Brett.
|
|
Post 25 made on Sunday January 20, 2008 at 23:47 |
Bigk200 Long Time Member |
Joined: Posts: | March 2005 17 |
|
|
Philips makes it hard for us "Uncertified Mortals" to download the Developer's Guide, which can only be accessed by persons who are "certified". But fortunately, you can download it from this site at this address: [Link: remotecentral.com]
|
|
Post 26 made on Monday January 21, 2008 at 01:29 |
Lyndel McGee RC Moderator |
Joined: Posts: | August 2001 13,003 |
|
|
I did not find Level 1 Certification to be "that" hard. Having worked with Philips remotes for 6.5 years now and being a Beta Tester, I also learned a few tips/tricks in the process.
In fact, once you are certified, you will likely have fewer questions to post here about how to use the editor, configure your remote, etc...
|
Lyndel McGee Philips Pronto Addict/Beta Tester
|
|
Post 27 made on Monday January 21, 2008 at 07:31 |
snelvuur Long Time Member |
Joined: Posts: | November 2007 55 |
|
|
You can redo level 1 as much as you want. Although i have to say for the price of the device i would rather have all the software free to get without the level 1 cert. (double the price here in the .eu then in the states)
Then again i can imagine philips pronto team would want you to do the cert so they wont have to deal with the 1000 mails "how do i install a xcf file" in the mailbox. So they can focus on creating new functions for the pronto.
|
|
Post 28 made on Monday January 21, 2008 at 17:48 |
Sylvain Founding Member |
Joined: Posts: | January 2002 294 |
|
|
On January 20, 2008 at 23:47, Bigk200 said...
Philips makes it hard for us "Uncertified Mortals" to download the Developer's Guide, which can only be accessed by persons who are "certified". But fortunately, you can download it from this site at this address:
Great. I didn't know that. Thanks Bigk200.
|
|
Post 29 made on Tuesday January 22, 2008 at 15:17 |
agr1277 Lurking Member |
Joined: Posts: | January 2008 7 |
|
|
Could someone give me a hand integrating the code I posted with the code Brett posted to accelerate the wheel. I messed around with the code Brett provided but I still couldn't get it working with my code. Any help would be appreciated. - Jason
|
|
Post 30 made on Tuesday January 22, 2008 at 16:41 |
sgtoma Long Time Member |
Joined: Posts: | December 2007 73 |
|
|
Read on this thread also. [Link: remotecentral.com]For accelerated script use the number of clicks/100ms (returned by the onRotary callback function) applied apply your algorithm of choice. Question is how do you want to implement this new acceleratedClicks value in your code?
|
|
|
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.
|
|