Premise how do I turn the navigation button into a ramp button?

Motorola Premise

etc6849

Senior Member
Here's another newbie question: I was wodering how I would change the 4 way navigatbutton buttons to ramp buttons (or whatever button will send a repetitive IR signal?)
 
... ramp buttons (or whatever button will send a repetitive IR signal?)
There's a control called "PressAndHoldAction" that may be the gadget you need. I found it by accident while exploring: Plugins/ControlsLibrary/BasicAudioVideo/Transport. Transport contains:
  1. Previous Track
  2. Rewind
  3. FastForward
  4. NextTrack
Both Rewind and FastForward are PressAndHoldAction controls.

Curiously, this control does not appear in the 'right-click' menu of available controls ... so that makes it a little tricky to use it! There are two ways around this little hurdle:
  1. Copy an existing control.
    Copy and paste Rewind and then modify its properties to suit your needs.
  2. Modify the code.
    Go to AutomationBrowser/ControlPanelManager/Classes/PressAndHoldAction and disable its Virtual property. This will make PressAndHoldAction visible in the right-click menu (see the attached image). BTW, if this breaks something else (I doubt it) just re-enable the Virtual property.
 

Attachments

  • PressAndHoldAction.png
    PressAndHoldAction.png
    46.2 KB · Views: 35
Very interesting, thanks 123 I didn't see that one! Works great with the GC-100 too. Finally, I have the same functionality as the old remote :)

I know the volume control uses a ramp button and does what I want, but as you probably found too, the ramp button doesn't work with the filter used for navigation (ie there is no targetvalue, only a targetproperty option). I wonder why they kept the press and hold option hidden? Almost every remote has atleast one press and hold function...

... ramp buttons (or whatever button will send a repetitive IR signal?)
There's a control called "PressAndHoldAction" that may be the gadget you need. I found it by accident while exploring: Plugins/ControlsLibrary/BasicAudioVideo/Transport. Transport contains:
  1. Previous Track
  2. Rewind
  3. FastForward
  4. NextTrack
Both Rewind and FastForward are PressAndHoldAction controls.

Curiously, this control does not appear in the 'right-click' menu of available controls ... so that makes it a little tricky to use it! There are two ways around this little hurdle:
  1. Copy an existing control.
    Copy and paste Rewind and then modify its properties to suit your needs.
  2. Modify the code.
    Go to AutomationBrowser/ControlPanelManager/Classes/PressAndHoldAction and disable its Virtual property. This will make PressAndHoldAction visible in the right-click menu (see the attached image). BTW, if this breaks something else (I doubt it) just re-enable the Virtual property.
 
Ok, so there is one small flaw... No way to adjust the delay between repeating the code as I hold the button down? Right now, there is no delay as you hold the button down, but it does repeat the IR command for me...

Very interesting, thanks 123 I didn't see that one! Works great with the GC-100 too. Finally, I have the same functionality as the old remote :)

I know the volume control uses a ramp button and does what I want, but as you probably found too, the ramp button doesn't work with the filter used for navigation (ie there is no targetvalue, only a targetproperty option). I wonder why they kept the press and hold option hidden? Almost every remote has atleast one press and hold function...

... ramp buttons (or whatever button will send a repetitive IR signal?)
There's a control called "PressAndHoldAction" that may be the gadget you need. I found it by accident while exploring: Plugins/ControlsLibrary/BasicAudioVideo/Transport. Transport contains:
  1. Previous Track
  2. Rewind
  3. FastForward
  4. NextTrack
Both Rewind and FastForward are PressAndHoldAction controls.

Curiously, this control does not appear in the 'right-click' menu of available controls ... so that makes it a little tricky to use it! There are two ways around this little hurdle:
  1. Copy an existing control.
    Copy and paste Rewind and then modify its properties to suit your needs.
  2. Modify the code.
    Go to AutomationBrowser/ControlPanelManager/Classes/PressAndHoldAction and disable its Virtual property. This will make PressAndHoldAction visible in the right-click menu (see the attached image). BTW, if this breaks something else (I doubt it) just re-enable the Virtual property.
 
... No way to adjust the delay between repeating the code as I hold the button down?
Have a look at your device driver's Infrared Communications section; you'll find an IR Command Latency property (see the attached image). If its description is correct, this property controls the time delay between repeated transmissions.

Premise's architecture has the following layers (see the attached image):
  1. Virtual
    Contains Virtual (i.e. Home) objects and programming logic (Macros, Scripting, Logic Diagrams)
  2. Device
    Contains Device Driver objects represent the physical device (bound to the Virtual layer).
  3. Presentation
    Contains Control objects (bound to Virtual layer; defines functionality) and Selector objects (bound to Controls; defines cosmetics).
The objects in the Presentation Layer, Selector and Control, define a Virtual object's user-interface. You won't find every property you need, like IR Command Latency, in a Control object because its responsibility is limited to rendering the user-interface. It is the Device Driver's responsibility to control the interaction with the physical device.

There's very little about Premise that isn't object-oriented and that makes it both powerful and, quite frankly, complicated.
 

Attachments

  • IR_Command_Latency.png
    IR_Command_Latency.png
    18.3 KB · Views: 31
  • Premise_Architectural_Diagram.png
    Premise_Architectural_Diagram.png
    33.5 KB · Views: 25
For some reason the ir latency property only works if you let go of the button, then repress it. It does not work if you hold the button down.
 
Back
Top