Question about Macros

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

Post Reply
TimL
Posts: 9
Joined: Wed Feb 20, 2008 12:06 pm

Question about Macros

Post 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
vickyg2003
Site Admin
Posts: 7109
Joined: Sat Mar 20, 2004 12:19 pm
Location: Florida
Contact:

Post 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
Last edited by vickyg2003 on Sun Mar 30, 2008 3:37 pm, edited 1 time in total.
The Robman
Site Owner
Posts: 21946
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post 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.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
TimL
Posts: 9
Joined: Wed Feb 20, 2008 12:06 pm

Post 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?
underquark
Expert
Posts: 874
Joined: Mon Jun 20, 2005 4:58 am
Location: UK

Post 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.
The Robman
Site Owner
Posts: 21946
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post 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.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Post Reply