Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
What's New
4/16/13 - "Harmony Ultimate" hybrid touchscreen and "Harmony Smart Control" models join the ranks.
4/15/13 - Convenient $150 hard buttoned remote for use with Apple iPhone or iPad-based control systems.
1/24/13 - Disappointing Q3 earnings due to flagging global PC market to blame.
12/31/12 - Our thanks to everyone who has helped make Remote Central a great community for the past year!
12/25/12 - Got a new remote? Want a new remote? Explore Remote Central's resources!
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 9 made on Friday December 30, 2011 at 17:53
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
11,540
You cannot change actions/actionlists for buttons via script.

If you need 2 different action lists to execute depending on state, I recommend that you create 2 buttons with same ProntoScript Name on 2 separate hidden pages and then use executeActions() or scheduleActions() against the correct widget/button.

In the onscreen button (the one you'd press for Key A on your keyboard), do something like the following.

if (keyboardState == 0) // unshifted
CF.widget("KeyA", "Unshifted").scheduleActions();
else if (keyboardState == 1) // shifted
CF.widget("KeyA", "Shifted").scheduleActions();


In the action of your shift key, you'd simply set the appropriate keyboard state. Note that keyboardState is a variable you declare in you activity or in the page script of the page where the GUI keyboard is contained.

Also note that the "Unshifted" and "Shifted" strings above are the ProntoScript names that you assign to the hidden pages where you have your keyboard buttons that contain the actions you want to execute for each state.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse