Is there some way to get event ghost to differentiate between to different attached devices?
When I attach my mobile phone with a USB cable to my computer I get the flowing event i my log.
System.DeviceAttached [u'\\\\?\\USB#Vid_0fce&Pid_d0f5#0044010749152380#{a5dcbf10-6530-11d2-901f-00c04fb951ed}']
When I drag this event to a macro it shows up as System.DeviceAttached. What I would like is for the macro to be able to see the difference between my phone and my girlfriends phone that shows up with different text between the brackets.
The same goes for any thing I attach over USB.
I use
EG 0.3.6.1487 and XP pro SP2
/Rasmus
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.
Question about the event System.DeviceAttached
-
prostetnic
- Posts: 28
- Joined: Fri Apr 18, 2008 6:52 pm
- Location: Sweden
Re: Question about the event System.DeviceAttached
System.DeviceAttached is the name of the event and the device id string is stored in the eg.event.payload variable. You have to make a script that parses the variable and does something based on that.
Example of a very simple python script that uses the variable:
http://www.eventghost.org/wiki/Scripting
Example of a very simple python script that uses the variable:
Code: Select all
print eg.event.string + "'s payload was: " + eg.event.payload
-
prostetnic
- Posts: 28
- Joined: Fri Apr 18, 2008 6:52 pm
- Location: Sweden
Re: Question about the event System.DeviceAttached
Thanks, That's what I was looking for 