|
|
|
Philips Pronto Professional Forum - View Post
|
|
|
|
|
|
|
The following page was printed from RemoteCentral.com:
Odd little problem with executeActions...
| |
|
Topic: | Odd little problem with executeActions and onHold This thread has 2 replies. Displaying all posts. |
|
Post 1 made on Saturday December 13, 2008 at 00:22 |
Guy Palmer Active Member |
Joined: Posts: | June 2008 648 |
|
|
I have an activity where the Home button is set up to jump to different pages depending on how long it is pressed for. It does this using onHold, onHoldInterval and onRelease. The button works fine most of the time.
However, there is one circumstance where the button never works. This is when:
1. I arrive at the activity from another activity using executeActions; AND 2. The Home button is the FIRST button I then press.
What happens is that the onHold function doesn't work (even though I have set onHoldInterval), so my counter is not incremented, so the conditional statements in onRelease then don't work.
Presumably, this is something to do with executeActions not 'closing properly'.
It works fine if I press ANY other button first and then the Home button.
Any thoughts?
|
|
Post 2 made on Saturday December 13, 2008 at 16:13 |
Lyndel McGee RC Moderator |
Joined: Posts: | August 2001 13,006 |
|
|
This is likely working as designed but without having a one-on-one look at your config, I cannot be sure.
My experience is that onHold() will not work directly immediately following a page jump (using firm/hard keys) and you must resort to using the Page Script to get this to work.
If you want to see an example of how this was done, you can download the Denon RS232 script from Philips (requires certification) and see how from the Home page, they do a Jump to a Volume page and ramp the volume based on code in the Page Script.
In their example, they setup the onRelease() for the Vol+/- widgets such that they can start a timer to determine when it is safe to go back to previous page.
|
Lyndel McGee Philips Pronto Addict/Beta Tester
|
|
OP | Post 3 made on Saturday December 13, 2008 at 19:36 |
Guy Palmer Active Member |
Joined: Posts: | June 2008 648 |
|
|
Lyndel,
Thanks for your reply, which is comprehensive as ever.
In itself, the issue is minor only. My main worry was that I was doing something wrong that might be having wider effects.
|
|
|
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.
|
|
|
|