Simulate a long key press in a macro?

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
PhileFriendly
Posts: 28
Joined: Sun Jan 02, 2005 2:28 am

Simulate a long key press in a macro?

Post by PhileFriendly »

I am trying to build a macro to turn on all of my devices at once, but unfortunately my receiver (Philips FR975) requires a long key press to power it on. Is there any way to do that in a macro?

On a related topic, if I can somehow map a short key press of a button to the long press behavior, that would also work (since I could then include that short key in the macro).

Thanks in advance!
jeajea
Posts: 288
Joined: Wed Feb 24, 2010 5:16 pm
Location: USA

Post by jeajea »

What remote are you using? Does it has an extender available? For most extenders the last button in the macro will be sent for as long as you hold the button that invokes macro. In your case you make receiver ON the last button.
Jim Anderson
vickyg2003
Site Admin
Posts: 7104
Joined: Sat Mar 20, 2004 12:19 pm
Location: Florida
Contact:

Post by vickyg2003 »

It depends on the remote and the protocol executor being used in the upgrade.
PhileFriendly
Posts: 28
Joined: Sun Jan 02, 2005 2:28 am

Post by PhileFriendly »

Thanks for the replies. The remote I have is OARUSB04G, and I haven't put an extender on it; all I've done is loaded a couple device codes that I've gotten from the forum. Incidentally, I did try just holding down on the macro key, but that didn't work (I was hoping what jeajea suggested maybe would be working out of the box).

thanks!
tranx
Posts: 682
Joined: Sun May 13, 2012 4:53 am
Location: Hants, UK

Post by tranx »

The extender is a bit like central heating or windup car windows, indispensable once you have got the hang of it
mathdon
Expert
Posts: 4726
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

PhileFriendly wrote:Incidentally, I did try just holding down on the macro key, but that didn't work (I was hoping what jeajea suggested maybe would be working out of the box).
On the OARUSB04G you need the extender for this to work. Also, depending on how long a keypress you need, the extender allows you to change the hold time of any key in a macro from the default of 250ms (the hold time in the unextended remote). The available range is 0-450ms in increments of 50ms. So you can almost double the hold time of the unextended remote, but to go beyond 450ms you need to make it the last key of the sequence and hold the physical button for as long as you need.

A note to old-timers puzzled by the above: macros in older UEI unextended remotes usually sent each signal 3 times, but UEI has changed this for the OARUSB04G and equivalents to a hold time of 250ms rather than a set number of repeats of the signal.
Graham
vickyg2003
Site Admin
Posts: 7104
Joined: Sat Mar 20, 2004 12:19 pm
Location: Florida
Contact:

Post by vickyg2003 »

mathdon wrote: A note to old-timers puzzled by the above: macros in older UEI unextended remotes usually sent each signal 3 times, but UEI has changed this for the OARUSB04G and equivalents to a hold time of 250ms rather than a set number of repeats of the signal.
Thanks for that. It helps with the steep learning curve of moving on to the newer remotes.
mdavej
Expert
Posts: 4631
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

FWIW, Xsight/Nevo macro steps have a programmable hold duration, which I think acts like a long key press. I've only used it with volume commands, and they work as if they are held for the duration.
Post Reply