Page 1 of 1
Question about Macros
Posted: Sun Mar 30, 2008 2:21 pm
by TimL
Hello,
I have a question about using macros. I own a 7950. When I assign a macro to a special key the macro function will be executed regardless of the mode selected (SAT, DVD, VCR...). But is it possible that a special button (e.g. "exit") in the SAT-mode is a macro-function and a "normal" button in the DVD-mode?
TimL
Posted: Sun Mar 30, 2008 2:32 pm
by vickyg2003
In most JP1 remotes, a keymove trumps a Macro. Most remotes looks for a key assignment first learned, then Keymoves, then macros.
Code: Select all
If learned
do learned
else
if kemove
do keymove
else
if macro
do macro
else
do key from setup
endif
endif
endif
Posted: Sun Mar 30, 2008 2:35 pm
by The Robman
Macros being global is how they were designed. The quick and easy way to override this, where you don't even need JP1, is to re-program the button, in the modes where you don't want the macro to execute, using either learning or keymoves.
So in your case, you could re-program the EXIT button to operate the DVD's "clear" function by either using the advanced code for "clear" or by learning the function from the DVD player's original remote.
In the JP1 world, we have a special protocol called DSM ("Device Specific Macro") which lets you program a macro that only operates in one mode.
Posted: Sun Mar 30, 2008 3:04 pm
by TimL
Thanks a lot for your quick answer! Well indeed, a keymove overrides the global macro on the 7950. Thanks! This solves my problem!
But just another question concerning the DSM. Can this protocol also be used on the 7950? Where can I find it?
Posted: Mon Mar 31, 2008 5:36 am
by underquark
DSM protocol is usually part of the "extender" (q.v.
extenders) for a particular remote so you'd most likely need to wait until an extender had been written for the 7950. The only reference I could find when searching for "extender" AND "7950" is in
this post.
Posted: Mon Mar 31, 2008 6:38 am
by The Robman
The DSM is a "special protocol" which can be found in the Special Protocols spreadsheet:
https://www.hifi-remote.com/forums/dload ... le_id=1768
However, there are a couple of values in the generated protocol that change based on the selected remote, so somebody would need to determine the values for the URC-7950.