How to catch pressed device button number for reuse?

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

How to catch pressed device button number for reuse?

Post by ElizabethD »

When a Device button or shift_Device or XShift_Device is pressed, I want to get at the button number that's being pressed but not until few macro steps run, and in some situations during holding it down. I'd like to catch the number before some other code clobbers it. How volatile is either one of those in the 8910?
R_Key1 = R80 ; Debounced key
R_Key = R82 ; Key being processed
When is the latest time I can get at it? Or is there some other place where it might be sitting.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

I forget which register holds it, but I remember that through the entire execution of a macro (or extender nested combination of macros) some register holds the key that launched the whole thing.

Best guess it is the "Debounced key" register you mentioned above.
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

Thanks John. I'll try it.
How can I make a keymove that sends no hex code? Just fake something and ignore it?
I just want a protocol to grab and store the button number. I have nothing to say to IR.
johnsfine wrote:...through the entire execution of a macro (or extender nested combination of macros)
Precisely what I'm looking for.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

It's R_Key1 in R80, debounced key. Holds up very well.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
Post Reply