On January 5, 2008 at 12:23, John Klimek said...
Anyways, in my above question #2 let's imagine that the
user hits [Watch] and then [Play a DVD]. Everything is
setup to play the DVD. The user then hits [Watch] to
see what other activities are available but he doesn't
choose any and decides to stay with his current activity
(eg. he doesn't press any buttons).
While the user is at the main Watch menu all of the keys
don't do anything.
I programmed an IF command that checks an activity variable I've set. First, create variables for your activities, such as Activity_DVD, Activity_TV, Activity_CD, or whatever. When I press 'Watch a DVD' the macro includes a variable that sets Activity_DVD=True. I then use the IF command to check the state of that variable. If I go back to Watch or Listen, then try to return to 'Watch a DVD', it checks to see if Activity_DVD=True. If it is True, then it just jumps to the correct page. If it's False, then it runs the normal startup macro for watching a DVD. The OFF command for every activity sets its activity variable false. That is, if I press OFF from the pages that used to Watch a DVD, then one of the macro commands is to set the DVD activity to false.
From the Watch page, Watch a DVD would go something like this:
IF [UI Var[Activity_DVD], True]
JUMP[Watch DVD/Page 1]
ELSE
UI Var[Activity_DVD], True]
.
.
turn on / setup sequence for needed devices
.
.
JUMP [Watch DVD/Page 1]
On the OFF button, include this:
UI Var[Activity_DVD], False]
...to reset the variable to the proper state.
Hope that helps.