Hello kgschlosser,
there's an error i dont know what to do.
Traceback (most recent call last):
Python script "16", line 3, in <module>
if 'VID_1C4F&PID_0003' not in device.DeviceId:
AttributeError: 'list' object has no attribute 'DeviceId'
it seems DeviceId missing in the payload?
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.
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.
Search found 9 matches
- Sun Jun 10, 2018 4:27 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
- Sat Jun 09, 2018 7:28 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
this event is a bit buggy cause its not always working.
Code: Select all
<Event Name="System.Device.Removed.PointingDevice.HID-compliant mouse" >
- Sat Jun 09, 2018 7:23 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
Yes it is finally works!
Many thanks to you.
By the way. I noticed that this code is not working anymore. i dont know what the problem is.
Is there any code similar to this one?
if eg.event.payload[0][8:25]=="VID_09DA&PID_C10A":eg.plugins.EventGhost.TriggerEvent(u"MyUsbAttached",3.0)
Many thanks to you.
By the way. I noticed that this code is not working anymore. i dont know what the problem is.
Is there any code similar to this one?
if eg.event.payload[0][8:25]=="VID_09DA&PID_C10A":eg.plugins.EventGhost.TriggerEvent(u"MyUsbAttached",3.0)
- Fri Jun 08, 2018 4:40 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
mice = eg.plugins.System.GetDevices(PointingDevice="*VID_09DA&PID_C10A*")
if not mice or mice[0].ConfigManagerErrorCode != 0:
eg.StopMacro()
eg.Exit()
woah!! this great!!
thanks you so much.. i'm ashamed. because i cant even donate coz im just a poor wanderer.
hope i can get some to support ...
if not mice or mice[0].ConfigManagerErrorCode != 0:
eg.StopMacro()
eg.Exit()
woah!! this great!!
thanks you so much.. i'm ashamed. because i cant even donate coz im just a poor wanderer.
hope i can get some to support ...
- Fri Jun 08, 2018 12:09 am
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
The plugin you gave me was amazed me, so many options. but like you said it has a bug. like mute not working but that's not matter anymore.
right now I have a question.
1. How do i know the name of the device i have to check? ex. PointingDevice="Logitech HID-compliant Unifying Mouse" i found out ...
right now I have a question.
1. How do i know the name of the device i have to check? ex. PointingDevice="Logitech HID-compliant Unifying Mouse" i found out ...
- Thu Jun 07, 2018 10:58 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
oh.. Im so sorry.. i thought the latest build was in this page..
http://www.eventghost.net/downloads/
thanks for that info.
will try it now.
http://www.eventghost.net/downloads/
thanks for that info.
will try it now.
- Thu Jun 07, 2018 7:18 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
Hello again.
I did install the plugin but i think EG cant install the plugin.
I have a latest release of EG which is EventGhost 0.4.1.r1722, Feb 03 2016
Here's the log.
03:04:27 ---> Welcome to EventGhost <---
03:04:36 Compiling C:\ProgramData\EventGhost\plugins\System2\Power\Notifier.py ...
03 ...
I did install the plugin but i think EG cant install the plugin.
I have a latest release of EG which is EventGhost 0.4.1.r1722, Feb 03 2016
Here's the log.
03:04:27 ---> Welcome to EventGhost <---
03:04:36 Compiling C:\ProgramData\EventGhost\plugins\System2\Power\Notifier.py ...
03 ...
- Thu Jun 07, 2018 1:54 pm
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Re: Check if my USB mouse is Connected.
hello kgschlosser thank you for your fast reply.
This is what i want.
I want to be able to have EG start and if the mouse is present then run the program?
I have these phyton code and working properly for usb insertion detection. and I get this python code somewhere here in forum.
if eg.event ...
This is what i want.
I want to be able to have EG start and if the mouse is present then run the program?
I have these phyton code and working properly for usb insertion detection. and I get this python code somewhere here in forum.
if eg.event ...
- Wed Jun 06, 2018 4:11 am
- Forum: General Support
- Topic: Check if my USB mouse is Connected.
- Replies: 18
- Views: 2042
Check if my USB mouse is Connected.
How do i know if my usb mouse is connected?
Recently I have i project and i want to know how EventGhost check if the hardware is present(Specifically "USB Mouse").
if the USB Mouse is not connected i want to execute a program and if it is connected i will not run the program.
please help me i am ...
Recently I have i project and i want to know how EventGhost check if the hardware is present(Specifically "USB Mouse").
if the USB Mouse is not connected i want to execute a program and if it is connected i will not run the program.
please help me i am ...