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.

Remove and attach HID Device by using eventghost

If you have a question or need help, this is the place to be.
Post Reply
simneol
Posts: 1
Joined: Mon Mar 25, 2013 11:08 am

Remove and attach HID Device by using eventghost

Post by simneol »

I want to remove and attach HID Device

For example

event:Process.created.ONENOTE
action:remove [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
(This HID Device is Touch Screen)

and

event:Process.destroyed.ONENOTE
action:attacah [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']

When I need to remove(or attach) the HID Device, I use program-DevManview-

but it take DevManview 3~4 sec to remove(or attach) the HID Device.

Too late.

So, I'm finding the way that remove(or attach) the HID Device faster than DevManview

I'm Sorry for my poor English :cry:

p.s-When DevManview remove(or attach) the HID Device, eventghost catch the log like below text
System.DeviceRemoved [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Remove and attach HID Device by using eventghost

Post by kkl »

I never found anything internal to EG to add or remove devices. I tried using the devcon.exe command (e.g. "c:\devcon.exe disable "@HDAUDIO\FUNC_01&VEN_1002*"). The command seemed to execute successfully, but the result didn't show up in Device Manager. I don't know about it's speed compared to DevManView.

For some reason, I needed to execute it as an administrator. See this thread for details.
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Remove and attach HID Device by using eventghost

Post by miljbee »

The delay is implied by the unload/reload drivers inside windows. you won't be able to speed it up.
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
Booster
Posts: 2
Joined: Sun May 26, 2013 6:01 pm

Re: Remove and attach HID Device by using eventghost

Post by Booster »

simneol wrote:I want to remove and attach HID Device

For example

event:Process.created.ONENOTE
action:remove [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
(This HID Device is Touch Screen)

and

event:Process.destroyed.ONENOTE
action:attacah [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']

When I need to remove(or attach) the HID Device, I use program-DevManview-

but it take DevManview 3~4 sec to remove(or attach) the HID Device.

Too late.

So, I'm finding the way that remove(or attach) the HID Device faster than DevManview

I'm Sorry for my poor English :cry:

p.s-When DevManview remove(or attach) the HID Device, eventghost catch the log like below text
System.DeviceRemoved [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']


I think so that you are not able to speed it up due to remove or attach the HID Device.
Booster
Posts: 2
Joined: Sun May 26, 2013 6:01 pm

Re: Remove and attach HID Device by using eventghost

Post by Booster »

simneol wrote:I want to remove and attach HID Device

For example

event:Process.created.ONENOTE
action:remove [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
(This HID Device is Touch Screen)

and

event:Process.destroyed.ONENOTE
action:attacah [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']

When I need to remove(or attach) the HID Device, I use program-DevManview-

but it take DevManview 3~4 sec to remove(or attach) the HID Device.

Too late.

So, I'm finding the way that remove(or attach) the HID Device faster than DevManview

I'm Sorry for my poor English :cry:

p.s-When DevManview remove(or attach) the HID Device, eventghost catch the log like below text
System.DeviceRemoved [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_03EB&PID_8411&MI_00&Col01#8&16148c6e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']


I think so that you are not able to speed it up due to remove or attach the HID Device.
Septik
Posts: 39
Joined: Sun Feb 15, 2015 1:29 pm

Re: Remove and attach HID Device by using eventghost

Post by Septik »

Stumbled upon this thread due to an issue I was having. My DualShock 4 controller (that I want connected at all times) was preventing my monitor from going into power-off mode. I looked into DevCon, but didn't want to 1) download 2+ GB and 2) modify my Visual Studio installation. So I looked into other options, and found a piece of software called USBDeview which finally solved my issue. Thought I'd post about it here in case someone else stumbles upon this thread looking for answers.

Here is my reddit post detailing the solution I went for.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Remove and attach HID Device by using eventghost

Post by Sem;colon »

Septik wrote:I looked into DevCon, but didn't want to 1) download 2+ GB and 2) modify my Visual Studio installation.
LOL, I guess you found the wrong devcon. It's usually just about 2MB.

But if you found another solution - well done! :)
If you like my work, Image me a drink :wink:
Septik
Posts: 39
Joined: Sun Feb 15, 2015 1:29 pm

Re: Remove and attach HID Device by using eventghost

Post by Septik »

Sem;colon wrote:
Septik wrote:I looked into DevCon, but didn't want to 1) download 2+ GB and 2) modify my Visual Studio installation.
LOL, I guess you found the wrong devcon. It's usually just about 2MB.

But if you found another solution - well done! :)
Oh, okay. I found it here (on Microsoft.com), and it seemed like I had to download the Windows Driver Kit to get ahold of it. If I'm wrong, then I appreciate the heads up! In any case, what I have now works very well so I wont bother changing things up for now. :)
Post Reply