Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Is it possible to tell apart event's device source?

If you have a question or need help, this is the place to be.
Post Reply
alogblog
Posts: 4
Joined: Wed May 18, 2016 4:56 am

Is it possible to tell apart event's device source?

Post by alogblog »

I am using below remote controller for PC control.
Image

It produces HID events and keyboard event.
When I press some key, that trigger <Keyboard.F2> event, and I want to use that key.

But in this case, if I press F2 key on my real keyboard, not on remote controller, the same macro is run.

I want to differentiate two events generated by keyboard and remote controller.

I guess current eventghost doesnt have a way to tell apart them, right?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Is it possible to tell apart event's device source?

Post by kgschlosser »

Need to know a few things

What operating system are you using?
Also what plugin are you using to generate the events?

Also a copy and paste of the event would be helpful

Thank You
K
If you like the work I have been doing then feel free to Image
alogblog
Posts: 4
Joined: Wed May 18, 2016 4:56 am

Re: Is it possible to tell apart event's device source?

Post by alogblog »

- Windows 7 Ultimate
- This remocon provides features like keyboard/airmouse/media control/voice switch, etc.
So I added <keyboard> plugin and all 4 HIDs which I guess all are related to this remocon because their name have <AliTV Remote V1 Airmouse>. However all added 4 HID have the same name, so I couldnt know which is which.
- If I press the key above blue MIC button, log shows <Keyboard.F2>.


This remocon has a feature switching PC mic. If I press blue MIC button, MIC on remote works.
One more pressing will switch to PC mic.

However that blue MIC button doesn't produce any event/signal to PC.
So I wanted to use the button(F2 key) above blue MIC button as triggering one.

If I press F2 button, speech recognition action will be triggered.
This remocon (or I guess any other one having MIC on it) has not so good MIC performance,
1 channel, 16 bit, 8000 Hz (telephone quality).

When I tried to use other PC vr programs like VoiceBot with this remocon's MIC, they failed to recognize my voice, but Google one did good, which IntelliSpeech use its engine.

I've had no problems except one thing.
Whenever I press F2 on real PC keyboard, that action alway run.

---

I've wrote a little redundant story because some people might have a interest in this remote.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Is it possible to tell apart event's device source?

Post by kgschlosser »

i need a copy of the event from the EventGhost Log file
If you like the work I have been doing then feel free to Image
alogblog
Posts: 4
Joined: Wed May 18, 2016 4:56 am

Re: Is it possible to tell apart event's device source?

Post by alogblog »

<Keyboard.F2> is all I got when I pressed that key.

I tried to get other event info by copying or searching a log file, but I couldnt.
When I copy that event line <Keyboard.F2>, pasted log is also <Keyboard.F2>

I want to provide more info but I don't know how to...

kgschlosser wrote:EventGhost Log file
Attachments
screen capture
screen capture
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Is it possible to tell apart event's device source?

Post by kgschlosser »

ok what i am seeing is that you have the HID plugin snstalled that is monitoring the same device 4 times, not sure why

and i am also unsure of what you have for settings on the HID plugin and if that is what is generating the events.

because inside the plugin for the HID you have the ability to set an event name to be able to separate them as well as you can select using the raw data as an event which would also separate them. the events are coming from the keyboard plugin. so the HID plugin doesn't generate any events at all???

and the remote you have emulates keyboard shortcuts so you may want to try using the MCE remote (not the vista one the other one) and see if that will separate them. just for fyi on more advanced remote the MCE plugin may not map all of the buttons.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Is it possible to tell apart event's device source?

Post by kgschlosser »

ok i learned that the HID won't do the job because it doesn't handle keyboard and mouse
If you like the work I have been doing then feel free to Image
alogblog
Posts: 4
Joined: Wed May 18, 2016 4:56 am

Re: Is it possible to tell apart event's device source?

Post by alogblog »

Thank you for taking care of this.

My problem is that, the key that I want to use for triggering some actions produces general <Keyboard.F*> function key values, not HID-specific values, while that remocon produces HID(multimedia control keys, etc) or Keyboard(normal characters) or Mouse(airmouse) events.

Current eventghost's (plugin) system gives us that
1. which value is pressed, (F2)
2. that value is from keyboard (event source).
3.(not yet) but not the fact that keyboard is from which one.( which we may call event device source)

I've come to run into this similiar situation on Android devices, where I have several bluetooth devices, and the buttons on each device produce the same event. However I want to use the same key on different devices act differently.(If not,I have no reason having extra devices) Luckily(?), Android gives event device source info, so we can deal with it.

But...I guess current eventghost(or plugin) doesn't give that info.

One last hope might be there in Python's windows API.

Waiting for Windows API guru...
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Is it possible to tell apart event's device source?

Post by kgschlosser »

normally it does, but with the keyboard plugin it doesn't because of how the hooking has to work with the keyboard and it sees all keyboards plugginto the computer as the same. the thing is you can't grab the single USB device either because it's part for the keyboard HID class.


so try and use the MCE remote for the non vista/win7

see if that work since it appears that your remote uses keyboard shortcuts. other than that this issue is beyone my knowledge, and maybe someone else knows of a way to achieve what you are looking for
If you like the work I have been doing then feel free to Image
Post Reply