Examples for programming long key presses, etc. in KM
Moderator: Moderators
Examples for programming long key presses, etc. in KM
I have a 6131 which has served us very well. I just purchased several new devices (WD TV Live and a 4 port HDMI switch) which will require changes to the programming.
Given how the switch works and the fact that I have a single HDMI input on my TV, it seems that long keypresses (or some other solution) are now required.
Is there an example for KM of constructing/using multiple devices in a long keypress? I have the manuals, but haven't re-read them in years and I remember not 'getting it' in regards to constructing multiple protocols for a single device/keypress.
Ideally, a long keypress of the PVR button on the remote should:
turn on the TV: (Sony KDF-E42A10)
Set the Receiver to DBS (JVC 1028VBK)
Set the TV to HDMI - input 6
turn on the HDMI Switcher to input 2: (Monoprice 401TA)
Activate the remote for PVR functions (set up for HD Sat. Tivo HR10-250)
The remote is configured for each separate device (with the exception of the 401TA), but nothing is tied together; i.e. I presently press TV, Power, (TV/Vid multiple times if I'm not already on input 6), AUD, Power (turn on the JVC receiver), 0 (selects DBS input), PVR (which allows me to control the Tivo which never really powers off)
If I can get a single example (like the one above), I can build off of it for the remainder of the devices and codes.
Barring that, I'll offer a bounty for someone to deliver a file built to my requirements.
Thanks in advance.
Andrew
Given how the switch works and the fact that I have a single HDMI input on my TV, it seems that long keypresses (or some other solution) are now required.
Is there an example for KM of constructing/using multiple devices in a long keypress? I have the manuals, but haven't re-read them in years and I remember not 'getting it' in regards to constructing multiple protocols for a single device/keypress.
Ideally, a long keypress of the PVR button on the remote should:
turn on the TV: (Sony KDF-E42A10)
Set the Receiver to DBS (JVC 1028VBK)
Set the TV to HDMI - input 6
turn on the HDMI Switcher to input 2: (Monoprice 401TA)
Activate the remote for PVR functions (set up for HD Sat. Tivo HR10-250)
The remote is configured for each separate device (with the exception of the 401TA), but nothing is tied together; i.e. I presently press TV, Power, (TV/Vid multiple times if I'm not already on input 6), AUD, Power (turn on the JVC receiver), 0 (selects DBS input), PVR (which allows me to control the Tivo which never really powers off)
If I can get a single example (like the one above), I can build off of it for the remainder of the devices and codes.
Barring that, I'll offer a bounty for someone to deliver a file built to my requirements.
Thanks in advance.
Andrew
LKPs aren't easy for novices. HERE's how to do it, after you load the extender. You'll have to do a lot of reading to get up to speed. I recommend you start easy and just put the steps you do today into a macro assigned to shift-PVR. Tackle the extender and LKP when you have a little more experience.
All this must be done in IR on the Macros tab, not KM. One thing you can do in KM is assign input6 to a button to use in your macro. That's much better than multiple presses of the input key. You'll also want to set up volume punch thru on the General tab if you haven't already.
All this must be done in IR on the Macros tab, not KM. One thing you can do in KM is assign input6 to a button to use in your macro. That's much better than multiple presses of the input key. You'll also want to set up volume punch thru on the General tab if you haven't already.
-
underquark
- Expert
- Posts: 874
- Joined: Mon Jun 20, 2005 4:58 am
- Location: UK
You must be using the Extender for your remote and you do the setting up in IR, not KM although - as stated above - you can use KM to assign functions to buttons.
Here is an example from my setup. I'm using an 8820 but it isn't all that different from the 6131. I have short press of PVR select the PVR device so that I can operate it and long press set to change the TV input to the PVR. I have Shift-1 in my TV upgrade change to AV1, Shift-2 to AV2 etc. and I use a similar trick for DVD and other source devices.
[1]Either use KM to assign the correct function to your chosen button (TV/Shift-1 in this case) or use IR's Key Moves tab.
Using IR, go to the Key Moves tab and click on "Add"
Set Bound Key: Device to TV, Key to 1 and tick the Shift box
Set the device type to TV, enter the correct Setup code for your TV upgrade and enter the EFC or Hex cmd.
[2]
Go to the Macros tab and click Add
Bound Key: Set Key to PVR and tick the Shift box
Scroll down the Available keys, select key and click on "Add", "Add Shift" etc. -
Select X_TV, Click "Add"
Select 1, click "Add Shift"
Select X_Cancel, click "Add"
Press OK
[3] in IR, go to the macros tab and click "Add". Assign a macro to the PVR button:
Bound Key: PVR
Macro Definition:
(Scroll down the Available keys, select key and click on "Add", "Add Shift" etc. -)
C_PVR
P_PVR
T_PVR
O_PVR
XHSIFT-PVR
Press the OK button (and NOT [Enter]) to save the macro
[4]
In IR, go to the Special Protocols tab and click Add
Bound Key: Set Device to PVR, Key to PVR and tick the XShift box
Parameters: Set Type to LKP, Duration 3
Macro Definition: Short Keys section is left blank, Long Keys SHIFT-PVR
(Scroll down the Available Keys, select PVR and click on Add Shift).
Press the OK button (and NOT [Enter])
What it does:
[1] Assigns the discrete code for the TV's AV1 input to TV/Shift-1 button
[2] Sets up a macro on Shift-PVR to temporarily change device mode to TV, send the code from TV/Shift-1 and then change back to the PVR device.
[3] Sets up the PVR device button so that when it is pressed all the buttons are set up for that device and that it then calls the XSHIFT-PVR "button" which isn't a button you usually physically press but which calls the Special Protocol for Long Key Press.
[4] The LKP Special Protocol handles the actual pressing of the button pressed. If it detects a short press it executes a macro consisting of the commands in the Short section. If it detects a long press (longer than the time set in Duration) it executes the commands in the Long section.
In this example, if it detects a short press then it does "nothing" as there is nothing in the Short section. If it detects a long press then it executes the macro which consists of the single command "Shift-PVR". It's Shift-PVR that contains the macro that does all the work. Strictly speaking the LKP doesn't actually do "nothing" following a short press since it accepts that PVR has been pressed and leaves you in PVR mode.
So to build it for your setup you'd do something like this:
[1] Make sure all the functions are available for each device and assigned to keys in their respective upgrades. These can be "real" keys or Shift-keys or XShift keys - doesn't really matter as they're just memory locations but sometimes you'll want to use a function on its own so assign it where it's most useful.
[2] Assign a macro to Shift-PVR that changes to each device in turn and sends the appropriate signals. You might have to change things a bit to get them working optimally but I'd probably do:
X_TV
Power (or, better, Power On if you have a discrete code for this)
X_other device
command
X-other device
command
X_TV
command for HDMI input
X_CANCEL
Note that I've powered the TV on and then used the time taken for the commands being sent to other devices to allow the TV time to come on fully before responding to the HDMI change inout command.
[3] Assign a macro to the PVR device button that sets up its button groups to work the way you want (you probably have already done this). Add the XSHIFT-PVR call at the end
[4] Create the Long Key Press from Special Protocols and assign it to XShift-PVR. Leave the Short section blank and simply call the Shift-PVR macro from the Long section.
There are other ways to it but this works for me and is fairly easy to follow and to change if necessary.
Here is an example from my setup. I'm using an 8820 but it isn't all that different from the 6131. I have short press of PVR select the PVR device so that I can operate it and long press set to change the TV input to the PVR. I have Shift-1 in my TV upgrade change to AV1, Shift-2 to AV2 etc. and I use a similar trick for DVD and other source devices.
[1]Either use KM to assign the correct function to your chosen button (TV/Shift-1 in this case) or use IR's Key Moves tab.
Using IR, go to the Key Moves tab and click on "Add"
Set Bound Key: Device to TV, Key to 1 and tick the Shift box
Set the device type to TV, enter the correct Setup code for your TV upgrade and enter the EFC or Hex cmd.
[2]
Go to the Macros tab and click Add
Bound Key: Set Key to PVR and tick the Shift box
Scroll down the Available keys, select key and click on "Add", "Add Shift" etc. -
Select X_TV, Click "Add"
Select 1, click "Add Shift"
Select X_Cancel, click "Add"
Press OK
[3] in IR, go to the macros tab and click "Add". Assign a macro to the PVR button:
Bound Key: PVR
Macro Definition:
(Scroll down the Available keys, select key and click on "Add", "Add Shift" etc. -)
C_PVR
P_PVR
T_PVR
O_PVR
XHSIFT-PVR
Press the OK button (and NOT [Enter]) to save the macro
[4]
In IR, go to the Special Protocols tab and click Add
Bound Key: Set Device to PVR, Key to PVR and tick the XShift box
Parameters: Set Type to LKP, Duration 3
Macro Definition: Short Keys section is left blank, Long Keys SHIFT-PVR
(Scroll down the Available Keys, select PVR and click on Add Shift).
Press the OK button (and NOT [Enter])
What it does:
[1] Assigns the discrete code for the TV's AV1 input to TV/Shift-1 button
[2] Sets up a macro on Shift-PVR to temporarily change device mode to TV, send the code from TV/Shift-1 and then change back to the PVR device.
[3] Sets up the PVR device button so that when it is pressed all the buttons are set up for that device and that it then calls the XSHIFT-PVR "button" which isn't a button you usually physically press but which calls the Special Protocol for Long Key Press.
[4] The LKP Special Protocol handles the actual pressing of the button pressed. If it detects a short press it executes a macro consisting of the commands in the Short section. If it detects a long press (longer than the time set in Duration) it executes the commands in the Long section.
In this example, if it detects a short press then it does "nothing" as there is nothing in the Short section. If it detects a long press then it executes the macro which consists of the single command "Shift-PVR". It's Shift-PVR that contains the macro that does all the work. Strictly speaking the LKP doesn't actually do "nothing" following a short press since it accepts that PVR has been pressed and leaves you in PVR mode.
So to build it for your setup you'd do something like this:
[1] Make sure all the functions are available for each device and assigned to keys in their respective upgrades. These can be "real" keys or Shift-keys or XShift keys - doesn't really matter as they're just memory locations but sometimes you'll want to use a function on its own so assign it where it's most useful.
[2] Assign a macro to Shift-PVR that changes to each device in turn and sends the appropriate signals. You might have to change things a bit to get them working optimally but I'd probably do:
X_TV
Power (or, better, Power On if you have a discrete code for this)
X_other device
command
X-other device
command
X_TV
command for HDMI input
X_CANCEL
Note that I've powered the TV on and then used the time taken for the commands being sent to other devices to allow the TV time to come on fully before responding to the HDMI change inout command.
[3] Assign a macro to the PVR device button that sets up its button groups to work the way you want (you probably have already done this). Add the XSHIFT-PVR call at the end
[4] Create the Long Key Press from Special Protocols and assign it to XShift-PVR. Leave the Short section blank and simply call the Shift-PVR macro from the Long section.
There are other ways to it but this works for me and is fairly easy to follow and to change if necessary.
Getting Close
OK, my macro partially works (which is good).
It seems my long keypress macro partially works
It seems that a short keypress/keypress triggers the macro
I don't seem to have all of the X_PVR options where X = C, P, O,T. I only seem to have T,V, O. I'm assuming that the C was a mistype for V (could be wrong).
My HDMI switch (new) doesn't seem to respond to my programming - I may have to learn the codes.
So, assuming all the errors are mine, the key issue is the actual long/short/regular keypress. Am I missing something since a short keypress seems to trigger the macro?
Thanks so much for the help already. Given that the remote worked (except for the addition of the WD TV Live and the HDMI switch), I think I'm going to get all of it working quickly.
Andrew
It seems my long keypress macro partially works
It seems that a short keypress/keypress triggers the macro
I don't seem to have all of the X_PVR options where X = C, P, O,T. I only seem to have T,V, O. I'm assuming that the C was a mistype for V (could be wrong).
My HDMI switch (new) doesn't seem to respond to my programming - I may have to learn the codes.
So, assuming all the errors are mine, the key issue is the actual long/short/regular keypress. Am I missing something since a short keypress seems to trigger the macro?
Thanks so much for the help already. Given that the remote worked (except for the addition of the WD TV Live and the HDMI switch), I think I'm going to get all of it working quickly.
Andrew
-
ElizabethD
- Advanced Member
- Posts: 2348
- Joined: Mon Feb 09, 2004 12:07 pm
To distinguish short from long press, did you play with the LKP parameter. Most people use 3 for Duration, but you may need more. Also make sure the Short side of the LKP macros is blank or does something clearly different than the long press side,
In 6131extender you will see T, V, O and X to cancel. Simple. I like it
So basically what's not transport buttons and volume+mute buttons is in the O-group.
I haven't read this thread carefully yet, but can you elaborate on "My HDMI switch (new) doesn't seem to respond to my programming - I may have to learn the codes."? Yes, usually we need to learn the codes. Or search through similar devices in the File section and you may find some discretes.
In 6131extender you will see T, V, O and X to cancel. Simple. I like it
I haven't read this thread carefully yet, but can you elaborate on "My HDMI switch (new) doesn't seem to respond to my programming - I may have to learn the codes."? Yes, usually we need to learn the codes. Or search through similar devices in the File section and you may find some discretes.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride
The HDMI switcher is from Meritline. It looks exactly like the Monoprice 4 Port with audio switcher (4 ports - 3 back/1 front, 2 CH/5.1 CH buttons, same layout, IR port location - everything is the same except the seller).
In my first attempt I used a downloaded Monoprice upgrade file. I'll either learn the keys or look around. Or it will work, but I goofed (a better than even money bet).
I have not changed the Duration from 3; I'll give that a try.
Given that it has almost worked, I'm very encouraged.
Andrew
In my first attempt I used a downloaded Monoprice upgrade file. I'll either learn the keys or look around. Or it will work, but I goofed (a better than even money bet).
I have not changed the Duration from 3; I'll give that a try.
Given that it has almost worked, I'm very encouraged.
Andrew
-
underquark
- Expert
- Posts: 874
- Joined: Mon Jun 20, 2005 4:58 am
- Location: UK
Sorry for the C, P, T, O confusion - that's from my 8820 setup. The main point is that you have the device button (PVR in the example) define its keygroups and then call the LKP on XSHift-PVR. Short press does "nothing" (i.e. leaves the PVR device set up and selected) and long-press calls another macro (which, for convenience and clarity, I have assigned to Shift-PVR) which handles all the input changing.
[Edit]
I have just been playing with a new presentation tool called Prezi and thought I'd have a stab at demonstrating the LKP here.
[Edit]
I have just been playing with a new presentation tool called Prezi and thought I'd have a stab at demonstrating the LKP here.
Last edited by underquark on Thu Oct 28, 2010 10:48 am, edited 1 time in total.
I posted this in the Extenders, but I'm copying it here since it is still a continuation of our discussion (sorry for the double post).
I have Dev7 (WD TV Live) and Dev8 (HDMI switch) programmed into the remote -URC6131. I built the upgrade for the HDMI switch.
These devices are triggered by a macro Shift-Thumbs Up or Shift Thumbs-Down. The macro is simple Dev7 or Dev8. This macro works fine without the extender.
With the extender I can't get Dev7 or Dev8 to gain control.
Here's what I've tried in the macro attached to Shift Thumbs-UP:
Version 1
Dev7
Version2
Dev7
V_Dev7
T_Dev7
O_Dev7
Version 3
V_Dev7
O_Dev7
T_Dev7
I'm clearly missing something.
I know that I should have volume controlled by the receiver, but the T/O keys should be Dev7 - don't care about sound since I'll fix that once SOMETHING is working.
I posted the Meritline HDMI 4x1 with audio switch upgrade file to the Diagnosis area (mute and power are busted). That isn't affecting this, but the link is
http://ww.hifi-remote.com/forums/dload. ... le_id=9063
Thanks guys!!!
Andrew
I have Dev7 (WD TV Live) and Dev8 (HDMI switch) programmed into the remote -URC6131. I built the upgrade for the HDMI switch.
These devices are triggered by a macro Shift-Thumbs Up or Shift Thumbs-Down. The macro is simple Dev7 or Dev8. This macro works fine without the extender.
With the extender I can't get Dev7 or Dev8 to gain control.
Here's what I've tried in the macro attached to Shift Thumbs-UP:
Version 1
Dev7
Version2
Dev7
V_Dev7
T_Dev7
O_Dev7
Version 3
V_Dev7
O_Dev7
T_Dev7
I'm clearly missing something.
I know that I should have volume controlled by the receiver, but the T/O keys should be Dev7 - don't care about sound since I'll fix that once SOMETHING is working.
I posted the Meritline HDMI 4x1 with audio switch upgrade file to the Diagnosis area (mute and power are busted). That isn't affecting this, but the link is
http://ww.hifi-remote.com/forums/dload. ... le_id=9063
Thanks guys!!!
Andrew
-
vickyg2003
- Site Admin
- Posts: 7104
- Joined: Sat Mar 20, 2004 12:19 pm
- Location: Florida
- Contact:
Cool tool. How difficult is it to work with? I've been thinking about trying something with FLASH, since I own a copy, but the learning curve is brutal.underquark wrote:
I have just been playing with a new presentation tool called Prezi and thought I'd have a stab at demonstrating the LKP here.
------------------------------------
Andy,
Most of us read all of the forums, so you really don't need to post it in both forums. The reason you didn't get an immediate response/diagonsis of this problem is that you haven't given us anything "actionable" to work with. If you want help with the extender, post the 6131 extender IR that doesn't work and the 6131 that does.
Remember to provide feedback to let us know how the problem was solved and share your upgrades.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Vicky,
Perhaps the 'best' response I'm looking for would simply answer "Which of the the options I laid out - 1,2 or 3 - is the correct way to access Dev7/8.
If I need to upload the 2 IR files, I'm happy to do that.
I have since remapped my VCR to 7 and the WD TV Live to VCR (since I can't remember when I last used the VCR), but I will need to access Dev8 to do the switching.
Thanks
Andrew
Perhaps the 'best' response I'm looking for would simply answer "Which of the the options I laid out - 1,2 or 3 - is the correct way to access Dev7/8.
If I need to upload the 2 IR files, I'm happy to do that.
I have since remapped my VCR to 7 and the WD TV Live to VCR (since I can't remember when I last used the VCR), but I will need to access Dev8 to do the switching.
Thanks
Andrew
On an unextended remote, use version 1. On an extended remote, use version 3.
Dev7 is just a phantom button on an extended remote. Like the other device buttons, it doesn't do anything in a macro unless some other macro is assigned to it. For example, you could put your version 3 macro on the dev7 button, then your shift-thumbsup macro could just call the dev7 macro (version 1).
Dev7 is just a phantom button on an extended remote. Like the other device buttons, it doesn't do anything in a macro unless some other macro is assigned to it. For example, you could put your version 3 macro on the dev7 button, then your shift-thumbsup macro could just call the dev7 macro (version 1).
-
vickyg2003
- Site Admin
- Posts: 7104
- Joined: Sat Mar 20, 2004 12:19 pm
- Location: Florida
- Contact:
Since you already tried method 3, and it isn't working, chances are that something else is going on in the extended remote. If we could see the IR file, we might be able to spot the problem.
Remember to provide feedback to let us know how the problem was solved and share your upgrades.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
-
ElizabethD
- Advanced Member
- Posts: 2348
- Joined: Mon Feb 09, 2004 12:07 pm
Maybe a working example helps, though this is so old, I'm not 100% sure I could explain.
I have a receiver coded on virtual device dev7.
Shift-AUD runs a macro: V_DEV7;T_DEV7;O_DEV7;SHIFT-Phantom3
where Shift-phantom3 is a LKP, like this: LKP(4)=[Short]:X_Cancel [Long]:X_Cancel;XSHIFT-Audio{CC};Vol-
and short press does nothing - but retains the V,T,O keysets assigned to dev7 in the outer device macro.
I also have a DVD on phantom device dev8.
Shift-DVD runs a macro: V_DEV7;T_DEV8;O_DEV8;X_DEV7;SHIFT-Phantom3
this macro uses the same shift-Phantom3 that I coded for dev7, hence the need to switch to dev7 (X-dev7) before calling LKP, and it also is the reason for the X-cancel commands in the LKP code.
Gee, can this help you with some small details? I don't know. Just trying to fill in few more ideas.
Edit: if you post one IR file, I can push it into my 6131 and record your macro using the widget. I will tell you then what came out. Perhaps we'll see what's missing.
Edit2: The file you uploaded is NOT an upgrade file. According to description and what I see it's few learned signals. No macros, no upgrades there.
I have a receiver coded on virtual device dev7.
Shift-AUD runs a macro: V_DEV7;T_DEV7;O_DEV7;SHIFT-Phantom3
where Shift-phantom3 is a LKP, like this: LKP(4)=[Short]:X_Cancel [Long]:X_Cancel;XSHIFT-Audio{CC};Vol-
and short press does nothing - but retains the V,T,O keysets assigned to dev7 in the outer device macro.
I also have a DVD on phantom device dev8.
Shift-DVD runs a macro: V_DEV7;T_DEV8;O_DEV8;X_DEV7;SHIFT-Phantom3
this macro uses the same shift-Phantom3 that I coded for dev7, hence the need to switch to dev7 (X-dev7) before calling LKP, and it also is the reason for the X-cancel commands in the LKP code.
Gee, can this help you with some small details? I don't know. Just trying to fill in few more ideas.
Edit: if you post one IR file, I can push it into my 6131 and record your macro using the widget. I will tell you then what came out. Perhaps we'll see what's missing.
Edit2: The file you uploaded is NOT an upgrade file. According to description and what I see it's few learned signals. No macros, no upgrades there.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride
Success
It may not be perfect, but it seems to be doing everything it should.
My long key press macro triggers all the right devices in the right order.
Now a LPK on DVD, PVR or VCR gets the audio on (if off) and to the right audio input, the TV on (if off) the HDMI switcher to the right input (if required) and the TV to the right input. It turns on the DVD if off (the Tivo on PVR and WD TV Live on VCR stay on) and sets the inputs to the right device for transport/other with the audio on the receiver.
I'd like to thank everyone. I had looked at this originally almost 6 years ago to the day (11/4/04) and could never get a handle on what was required.
Now, its working. I'm sure there are a lot of things I could do to improve the setup, but IT WORKS.
I'm stunned to look back at that 11/4/04 post and my success today; it's deja vu all over again.
Andrew
My long key press macro triggers all the right devices in the right order.
Now a LPK on DVD, PVR or VCR gets the audio on (if off) and to the right audio input, the TV on (if off) the HDMI switcher to the right input (if required) and the TV to the right input. It turns on the DVD if off (the Tivo on PVR and WD TV Live on VCR stay on) and sets the inputs to the right device for transport/other with the audio on the receiver.
I'd like to thank everyone. I had looked at this originally almost 6 years ago to the day (11/4/04) and could never get a handle on what was required.
Now, its working. I'm sure there are a lot of things I could do to improve the setup, but IT WORKS.
I'm stunned to look back at that 11/4/04 post and my success today; it's deja vu all over again.
Andrew