Post 1 made on Friday October 1, 2010 at 12:36 |
Jimmy Bellagio Advanced Member |
Joined: Posts: | January 2008 854 |
|
|
I have a Pronto for my own home and I want to create 2 different configuration files. Not proficient in PS, so I was hoping someone could help since this feature is not available in the software.
Is there a way to have two buttons on the main page -his and hers where pressing each would define a varaible or set a flag so that you could put a conditional on every page theerafter that would page jump to either his section or hers section? If anyone would mind sending me something or showing me how to do that would greatly appreciate it. My wife cannot use the same configuraion as me...
Thanks
|
James S. Bellagio |
|
Post 2 made on Friday October 1, 2010 at 12:55 |
multimedia Long Time Member |
Joined: Posts: | December 2006 111 |
|
|
The only way to do this without script is to double all your activities - one activity for "him" and one for "her". Big disadvantage is however, that if you have to change your configuration you have to do it twice.
I really would recommend prontoscript to do this. It is a typical possibility for using a global variable as a flag - just as you stated above.
|
|
|
Post 3 made on Friday October 1, 2010 at 22:36 |
alpha Long Time Member |
Joined: Posts: | September 2003 258 |
|
|
What You could do without prontoscript .
Create a His button that jumps to a page ("HIS ACTIVITIES" ) , with the activities listed that you use. Create a HER button that jumps to a page ("HER ACTIVITIES" ) , with the activities listed that she will use. In all of the activities that she uses , add 1 page with only the buttons and graphics she will use . Make the page hidden . If you need more than one hidden page in her activity, add a "NEXT PAGE" button to the graphics on all her pages. Make sure to have the button do a Page Jump to the her next page . On the "HIS ACTIVITIES" page create different jumps to pages that you both share.
In your activity when you use the PAGE + / - Hard Buttons it will skip her pages completely . When in Her activity It will skip your pages completely if you use the "NEXT PAGE" button on screen. If she uses the PAGE + / - Hard Buttons it will jump into your pages.
I have never tried to do this with script so you might need to use... System.setGlobal/getGlobal.
|
Project Boredom 2 is here. [Link: mediafire.com]------------------------ Check Version 1 & 2 out in the files section. |
|
Post 4 made on Saturday October 2, 2010 at 01:55 |
Lyndel McGee RC Moderator |
Joined: Posts: | August 2001 12,999 |
|
|
System.setGlobal/getGlobal is only useful for storing string data. This can be useful for integer/boolean values but you have to remember to cast them from string back to correct type when you use System.getGlobal().
Object storage is a bit more difficult.
However, thanks to Rusty Fobe we have utilities posted in the files section. With said utilities one can convert a javascript object/array into a string format that can be restored using javascript eval. The serialization technique/notation used here is what has become known as JSON (Javascript Object Notation).
|
Lyndel McGee Philips Pronto Addict/Beta Tester
|
|
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.