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:
Different IR Action!
This thread has 2 replies. Displaying all posts.
Post 1 made on Monday November 8, 2010 at 01:31
deric.lts
Long Time Member
Joined:
Posts:
September 2010
24
Hi, I'm doing a page script for aircond control. Wondering how could I send out different IR when I press Up/Down a button?

Scenario:
When i first log into the page, aircond is set to 23degree by default. If the user press Up/Down button, the label should be updated and the IR should be sent to the aircond accordingly. So how should I define separate IR codes within one button? create different pages?
Post 2 made on Monday November 8, 2010 at 05:31
buzz
Super Member
Joined:
Posts:
May 2003
4,379
deric.lts,

I think that your first decision is using ProntoScript or not.

My preference would be to make a page with a range of temperature buttons. I don't like the idea of changing the temperature simply because I, or someone else, landed on a particular page.

Without ProntoScript, you would build a number of nearly identical pages (differing only by temperature), then update the +/- button macros to issue the IR, then jump to the appropriate indicator page.

With a ProntoScript approach, create your main aircond page with the +/- button and a hidden page of temperature buttons. Give each of the buttons a convenient, unique tag name, such as 'TEMP_20', 'TEMP_21', 'TEMP_22'. At this point you can use "scheduleActions()" or "executeActions()" on your temperature buttons.

You can use string concatenation to build the button temperature button's tag name.

Rather than establishing a default setting that is executed every time that the page is entered, consider using a global variable to hold the current  temperature setting. Air conditioners don't like to be jerked around. I am reluctant to make unnecessary temperature adjustments.

---

In my own work I built a generalized "call/return" library script that will push the current page location on a return stack and jump to a page. This allows me to build control pages for surround, temperature, video adjustments, etc., that can be called from any page. A "return" key on the control page jumps back to the caller. This is a little messy, but not complicated to get going. Once this is in place, any page can jump to a control page and return to the calling page.

To a limited extent a "return" can be done with a "browse backward" jump, but this simple scheme breaks down if the control involves multiple pages.
OP | Post 3 made on Tuesday November 9, 2010 at 01:09
deric.lts
Long Time Member
Joined:
Posts:
September 2010
24
hi buzz, thnx for da suggestion! will further consult u if i have any prob.!!! =)

Last edited by deric.lts on November 9, 2010 03:51.


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