Your Universal Remote Control Center
RemoteCentral.com
Complete Control by URC Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 11 made on Monday April 22, 2013 at 11:24
Lamblin Entertainment
Long Time Member
Joined:
Posts:
August 2011
18
On April 22, 2013 at 09:00, danieljanderson said...
If I understand correctly, I don't think you would need any variables.

On each device page, for the PREV CH key, just have a page jump back to the appropriate Activity.

If they are on the DVD device page, there should be no doubt that they want to go back to the DVD activity page.

Thanks for the idea, but in general that won't work. For instance from Watch DVD the user could go to the AV Receiver device, and since allmost all Activities use the AV Rcvr, there is no way to determine what the last activity might have been without having set a return flag via Variables.

That said, I now have everything working exactly as desired.

For others reading this post, the approach was to . . .

1) Create a hidden page that contained six Independant Var Macros (one for each of the 6 possible Activities). Each of these macros are of Type Var (versus normal or hold) and only have a single line of code which defines the TRUE action for the Var. For example, If the SAT Variable is True, Jump to Watch Satalite/Page 1.

Thus when SAT is true the screen will return to the Watch Satelite Activity.

2) Define a "Return Jump" Normal Type macro (eg, RTNACT) on a hidden page which contains multiple lines of code, each code line Aliased to each of the above noted Set VAR macros. When this macro is executed it will cause a Jump to the Activity whose Var is true. Obviously since this Return macro has a jump for each of the Activities, it will only work if one and only one Var, out of the multiple entries in the list, is True.

3) Define a Normal Macro (CLRVARS) which contains (in my case) six entries, each of which Sets one of the VARs to False. This macro thus clears all Vars to assure a default state.

4) When an Activity is started, execute the CLRVARS macro, then set the Activity's associated VAR to True. Conversely when an Activity is terminated, execute the CLRVARS macro to reset any and all VARs.

5) Define a Device key (hard or soft) to cause a return to the prior (Calling) Activity. This key will have a single macro entry aliased to the (eg) RTNACT macro. Since only the Var for the calling Activity will be true, that is the only line of code that will pass the true test and cause a return to its associated Activity.

It all sounds more complicated than it really was to create. It works as desired. I used the CH PREV hard button in the Device pages to return to the calling Activity.

Since only the DSS Satalite Receiver used that hard key, I assigned the CH PREV function to a soft key so it could be accessed, if desired.
theGadgetGuy


Hosting Services by ipHouse