Page 1 of 1

IgorPlug-USB & Speedy2 missing buttons names

Posted: Thu Jun 27, 2013 7:17 am
by totya
Hi!

First, thanks for this great application.

Eventghost version is latest (0.4.1 r1610).

My IR remote is Speedy 2 http://www.cme.it/meli1/pdf/speedy2_gb.pdf

My IR receiver is IgorPlug-USB http://www.cesko.host.sk/IgorPlugUSB/Ig ... 29_eng.htm

I use this receiver under win7 x64 with x64 driver http://www.promixis.com/forums/showthre ... SB-Release and modified init.py http://www.eventghost.org/forum/viewtop ... f=2&t=1225

Almost all button name is correct, example if I press VOL UP, Eventghost say: EZMCUSB.RC5.TV1.VolumeUp etc.

But two button name is missing:

If I press "AV" on remote, Eventghost log: EZMCUSB.RC5.TV1.39
If I press "PAUSE" on remote, Eventghost log: EZMCUSB.RC5.VCR1.30

This is not really big problem, but I can solve this?

If I use original IgorPlug-USB driver under XP, the result is similar, this is not x64 driver problem.

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Thu Jun 27, 2013 10:47 am
by piert
It is unclear to me what you want. The messages are not correct, but you can use them in macros just the same, right?
The names of events do not have to reflect what they really do to be still useful.

If you are using the Eventghost events for something else, like for on-screen display or payload for other applications, you can make use of a python script to 'translate' the event into something else. If that is what you need, let us know and we will help you further.

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Thu Jun 27, 2013 11:28 am
by totya
piert wrote:It is unclear to me what you want. The messages are not correct, but you can use them in macros just the same, right?
The names of events do not have to reflect what they really do to be still useful.

If you are using the Eventghost events for something else, like for on-screen display or payload for other applications, you can make use of a python script to 'translate' the event into something else. If that is what you need, let us know and we will help you further.
Hi!

Okay example, if configuration is empty, except autostart/plugin:EZMCUSB is active, ths pressed keys show in log with correct names, example VolumeUP, ChannelUP etc,only two buttons name is missing, see my previous post: "AV" and "Pause". I know this is not really big problem, and I hope this message is clear for you.

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Thu Jun 27, 2013 12:20 pm
by piert
If you do not do anything with the events from the log, why would you care if the right information is listed in the logs? I still do not understand.

If you insist to have the correct event names appearing in the log, you could create a python command that activates when the specific event is received in the log (i.e. when you press the PAUSE button, for instance).

To do so, create a new macro, drag the event "EZMCUSB.RC5.VCR1.30" from the event event log onto it and then add a python command action as follows:
eg.TriggerEvent("PAUSE", payload=None, prefix="EZMCUSB.RC5.VCR1.30", source=eg)

Now, when you press PAUSE on your remote, the event "EZMCUSB.RC5.VCR1.30" will appear in the event log, which triggers your new macro, which will issue the event
"EZMCUSB.RC5.VCR1.30.PAUSE" into your event log.

Again, I have no clue if that is what you want and why you'd want that anyway, but there it is.

If you are looking for an Eventghost tutorial, I recommend watching this:
http://www.youtube.com/watch?v=xnMzu1h1gxc

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Thu Jun 27, 2013 1:34 pm
by totya
piert wrote:If you do not do anything with the events from the log, why would you care if the right information is listed in the logs? I still do not understand.
Thanks for answer. This is only sample for you.

This is really big question, if I press keys, I want see this exactly on the screen? I think absolutly not.
piert wrote: If you insist to have the correct event names appearing in the log, you could create a python command that activates when the specific event is received in the log (i.e. when you press the PAUSE button, for instance).

To do so, create a new macro, drag the event "EZMCUSB.RC5.VCR1.30" from the event event log onto it and then add a python command action as follows:
eg.TriggerEvent("PAUSE", payload=None, prefix="EZMCUSB.RC5.VCR1.30", source=eg)

Now, when you press PAUSE on your remote, the event "EZMCUSB.RC5.VCR1.30" will appear in the event log, which triggers your new macro, which will issue the event
"EZMCUSB.RC5.VCR1.30.PAUSE" into your event log.
Thanks, and I see this working, but not really nice solution, because:

If I press vol downn, I see this in log: EZMCUSB.RC5.TV1.VolumeDown
If I press pause - with your macro - I see this:

Code: Select all

14:59:24   EZMCUSB.RC5.VCR1.30
14:59:24      convert keys
14:59:24         eg.TriggerEvent("PAUSE", payload=None, prefix="EZMCUSB.RC5.VCR1.30", source=eg)
14:59:24   EZMCUSB.RC5.VCR1.30.PAUSE
The result is: EZMCUSB.RC5.VCR1.30.PAUSE

But similar to other pressed key, the nice result is: EZMCUSB.RC5.VCR1.PAUSE or EZMCUSB.PAUSE (!)

This is possible?

And why important this?

1. not ugly, unified.

2. My second remote control keys is undeterminable, example:

Code: Select all

15:04:38   EZMCUSB.Unknown.2FBBE7BBEC
15:04:38   EZMCUSB.Unknown.10
15:04:39   EZMCUSB.Unknown.2FFFEFFFEC
15:04:39   EZMCUSB.Unknown.10
15:04:40   EZMCUSB.Unknown.2FFFEFFFEC
15:04:40   EZMCUSB.Unknown.10
Nice solution, if I convert these keys to real names (Volume Down/Pause etc) in common place/folder, because I leave all script and events untouched and my two remote controls works. This is programmer logic, the result is clean code.

Question, these key names, example:

Code: Select all

EZMCUSB.RC5.TV1.VolumeDown
EZMCUSB.Unknown.2FFFEFFFEC
where come from? From driver? Or Evenghost app converted from driver data?
piert wrote: Again, I have no clue if that is what you want and why you'd want that anyway, but there it is.

If you are looking for an Eventghost tutorial, I recommend watching this:
http://www.youtube.com/watch?v=xnMzu1h1gxc
Thanks, but I absolutly know what I want :) Now I use this app to control volume, and control foobar audio app (seek/volume/play/pause/next track etc.)

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Sun Jun 30, 2013 10:46 am
by totya
piert wrote:(...)To do so, create a new macro, drag the event "EZMCUSB.RC5.VCR1.30" from the event event log onto it and then add a python command action as follows: eg.TriggerEvent("PAUSE", payload=None, prefix="EZMCUSB.RC5.VCR1.30", source=eg)
Now, when you press PAUSE on your remote, the event "EZMCUSB.RC5.VCR1.30" will appear in the event log, which triggers your new macro, which will issue the event "EZMCUSB.RC5.VCR1.30.PAUSE" into your event log.
Hi!

Okay, I modified this script, and the result is OK for me.

Input example this: EZMCUSB.RC5.VCR1.30

Script:

Code: Select all

eg.TriggerEvent("Pause", prefix="RemoteControl", payload=None, source=eg)
Result:

Code: Select all

RemoteControl.Pause
But this is not perfect solution, because "Autorepeat current macro" is not working if I use this new event. "Autorepeat current macro" action need of forward/rewind/volume functions...

Thanks.

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Fri May 02, 2014 6:05 pm
by WharfRat
The Remote Event Mapper plugin might have been a better solution for this...

Re: IgorPlug-USB & Speedy2 missing buttons names

Posted: Tue May 06, 2014 8:37 pm
by totya
WharfRat wrote:The Remote Event Mapper plugin might have been a better solution for this...
Thank you! This is really good idea, and this works!