Re: Changes to System.DeviceAttached/System.DeviceRemoved
Posted: Fri Jun 23, 2017 8:38 pm
and I also wanted to specifically test to see if events get generated when you connect and disconnect a Bluetooth device
Support Forum
http://www.eventghost.net:80/forum/
Code: Select all
10:21:34 System.Device.Attached.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:21:34 Attached
10:21:34 Python Script
10:21:34 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:21:36 System.Device.Attached.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:21:36 Attached
10:21:36 Python Script
10:21:36 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:21:38 System.Device.Attached.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:21:38 Attached
10:21:38 Python Script
10:21:38 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:21:40 System.Device.Attached.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:21:40 Attached
10:21:40 Python Script
10:21:40 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:21:43 System.Device.Attached.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:21:43 Attached
10:21:43 Python Script
10:21:43 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, Code: Select all
10:18:09 System.Device.Removed.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:18:09 Removed
10:18:09 Python Script
10:18:09 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:18:09 System.Device.Removed.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:18:09 Removed
10:18:09 Python Script
10:18:09 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:18:09 System.Device.Removed.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:18:09 Removed
10:18:09 Python Script
10:18:09 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:18:09 System.Device.Removed.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:18:09 Removed
10:18:09 Python Script
10:18:09 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB,
10:18:09 System.Device.Removed.USBDevice.Home TV <dynamic-device 'USBDevice'>
10:18:09 Removed
10:18:09 Python Script
10:18:09 Name: Home TV, Description: Generic software device, Caption: Home TV, DeviceId: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, DeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, ClassGuid: {62f9c741-b25a-46ce-b54c-9bccce08b6f2}, PNPDeviceID: SWD\DAFUPNPPROVIDER\UUID:23810C68-DDAD-67E6-770F-8A07E1366CFB, This the feature that interests me the most as you you knowkgschlosser wrote:and I also wanted to specifically test to see if events get generated when you connect and disconnect a Bluetooth device

Code: Select all
07:37:58 cls_name: PNPEntity display_name: USB Device
07:37:58 cls_name: PNPEntity display_name: USB Device
07:37:59 cls_name: PNPEntity display_name: Video Device
07:37:59 cls_name: PNPEntity display_name: Video Device
07:38:00 cls_name: PNPEntity display_name: I2C Device
07:38:00 cls_name: PNPEntity display_name: I2C Device
07:38:01 cls_name: PNPEntity display_name: BlueTeeth Device
07:38:01 cls_name: PNPEntity display_name: BlueTeeth Device
07:38:01 cls_name: PNPEntity display_name: TV Tuner
07:38:01 cls_name: PNPEntity display_name: TV Tuner
07:38:01 cls_name: PNPEntity display_name: HID Device
07:38:01 cls_name: PNPEntity display_name: HID Device
07:38:01 cls_name: PNPEntity display_name: Still Capture
07:38:01 cls_name: PNPEntity display_name: Still Capture
07:38:02 cls_name: PNPEntity display_name: Portable
07:38:02 cls_name: PNPEntity display_name: Portable
07:38:02 cls_name: PNPEntity display_name: Imaging Device
07:38:02 cls_name: PNPEntity display_name: Imaging Device
07:38:02 cls_name: PNPEntity display_name: EPG
07:38:02 cls_name: PNPEntity display_name: EPG
07:38:02 cls_name: PNPEntity display_name: Video Capture
07:38:02 cls_name: PNPEntity display_name: Video Capture
07:38:03 cls_name: PNPEntity display_name: Network Tuner
07:38:03 cls_name: PNPEntity display_name: Network Tuner
I gave you a sample here :kgschlosser wrote:and i see those tons of events but not a single one of them has tripped that script i told you to run... i need that information
Have you ever heard of the SSDP protocol ? I think the information is gathered with the help of the Windows service called SSDP Discovery. Browse your network and you will see many network devices such as TV, Router, NAS, etc. (not necessarily computers).kgschlosser wrote:and also. how is your TV connected to your computer? because it is coming up as a Generic software device do you have some kind of software on your computer for using your TV?
https://en.wikipedia.org/wiki/Simple_Se ... y_ProtocolService name: SSDPSRV
Display name: SSDP Discovery
Description:
Discovers networked devices and services that use the SSDP discovery protocol, such as UPnP devices. Also
announces SSDP devices and services running on the local computer. If this service is stopped, SSDP-based
devices will not be discovered. If this service is disabled, any services that explicitly depend on it will fail to
start.
Path to executable:
C:\Windows\system32\svchost.exe -k LocalServiceAndNoImpersonation
Code: Select all
11:34:12: 0 MainThread: ----------------------------------------
11:34:12: 0 MainThread: EventGhost started
11:34:12: 0 MainThread: ----------------------------------------
11:34:12: 0 MainThread: EventGhost Version: 0.5.0-rc2
11:34:12: 0 MainThread: Machine type: AMD64
11:34:12: 0 MainThread: Processor: Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
11:34:12: 0 MainThread: Architecture: ('32bit', 'WindowsPE')
11:34:12: 0 MainThread: Python: 2.7.12 CPython ('default', 'Oct 31 2016 18:42:08') [MSC v.1500 32 bit (Intel)]
11:34:12: 0 MainThread: ----------------------------------------
Traceback (most recent call last) (0.5.0-rc2):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 64, in __init__
__import__(moduleName, None, None, [''])
File "C:\ProgramData\EventGhost\plugins\System\__init__.py", line 23, in <module>
import Device
File "C:\ProgramData\EventGhost\plugins\System\Device\__init__.py", line 31, in <module>
import Devices
File "C:\ProgramData\EventGhost\plugins\System\Device\Devices.py", line 26, in <module>
from Notifier import DEVICES
File "C:\ProgramData\EventGhost\plugins\System\Device\Notifier.py", line 28, in <module>
import beautifultable
File "C:\ProgramData\EventGhost\plugins\System\Device\beautifultable\__init__.py", line 1, in <module>
from .beautifultable import BeautifulTable
File "C:\ProgramData\EventGhost\plugins\System\Device\beautifultable\beautifultable.py", line 33, in <module>
from .rows import RowData, HeaderData
File "C:\ProgramData\EventGhost\plugins\System\Device\beautifultable\rows.py", line 4, in <module>
from .enums import WidthExceedPolicy
File "C:\ProgramData\EventGhost\plugins\System\Device\beautifultable\enums.py", line 1, in <module>
import enum
ImportError: No module named enum
11:34:13: 0 MainThread: PluginManager.ScanAllPlugins :0.4790667611618597
11:34:13: 0 MainThread: SendKeysParser.__init__()
11:34:13: 0 MainMessageReceiver: MainMessageReceiver.__MainLoop()
11:34:13: 0 MainMessageReceiver: MainMessageReceiver.Setup()
11:34:13: 0 MainThread: Document.ShowFrame()
11:34:13: 0 MainThread: Log.GetData()
11:34:13: 0 MainThread: Document.ShowFrame => None
11:34:13: 0 ActionThread: ActionThread.__MainLoop()
11:34:13: 0 EventThread: EventThread.__MainLoop()
11:34:14: 0 EventThread: EventThread.StartSession(filename=u'C:\\Users\\snowbird\\Documents\\Backup\\EventGhost\\test.egtree')
11:34:14: 0 ActionThread: ActionThread.StartSession(filename=u'C:\\Users\\snowbird\\Documents\\Backup\\EventGhost\\test.egtree')
Traceback (most recent call last) (0.5.0-rc2):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 79, in StartSession
pluginInfo = eg.pluginManager.OpenPlugin(guid, None, ())
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginManager.py", line 52, in OpenPlugin
clsInfo = NonexistentPluginInfo(ident, evalName)
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginManager.py", line 140, in __init__
Plugin.__name__ = name
TypeError: can only assign string to Plugin.__name__, not 'NoneType'
11:34:14: 0 ActionThread: Document.Load(filePath=u'C:\\Users\\snowbird\\Documents\\Backup\\EventGhost\\test.egtree')
11:34:14: 0 MouseThread: MouseThread.run()
11:34:14: 1 MainThread: OSDFrame.__init__(parent=None)
11:34:14: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
11:34:14: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1, 2]))
11:34:14: 0 ActionThread: XML loaded in 0.005597 seconds.
11:34:14: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
11:34:14: 0 ActionThread: ActionThread.StartSession => None
11:34:21: 1 MainThread: MainFrame.OnClose(dummyEvent=<wx.CloseEvent>)
11:34:21: 1 MainThread: App.Exit()
11:34:21: 1 MainThread: Document.CheckFileNeedsSave()
11:34:21: 1 MainThread: Document.CheckFileNeedsSave => 5100
11:34:21: 1 MainThread: Document.Close()
11:34:21: 1 MainThread: MainFrame.Destroy()
11:34:21: 1 MainThread: LogCtrl.Destroy()
11:34:21: 1 MainThread: TreeCtrl.Destroy()
11:34:21: 1 MainThread: StatusBar.Destroy()
11:34:21: 1 MainThread: StatusBar.__del__()
11:34:21: 1 MainThread: MainFrame.Destroy => True
11:34:21: 1 MainThread: Document.GetExpandState()
11:34:21: 1 MainThread: Document.Close => None
11:34:21: 1 MainThread: MainFrame.Iconize(flag=False)
11:34:21: 1 MainThread: MainFrame.Iconize(flag=False)
11:34:21: 1 MainThread: Triggering OnClose
11:34:21: 1 MainThread: App.OnExit()
11:34:21: 1 MainThread: Calling exit functions
11:34:21: 1 MainThread: <function CloseOSD at 0x087EAEF0>
11:34:21: 1 MainThread: Calling eg.DeInit()
11:34:21: 1 MainThread: stopping threads
11:34:21: 0 ActionThread: ActionThread.StopSession()
11:34:21: 0 ActionThread: UnloadPlugins()
11:34:21: 0 ActionThread: closing C:\Program Files (x86)\EventGhost\plugins\EventGhost
11:34:21: 0 ActionThread: closing C:\Program Files (x86)\EventGhost\plugins\Window
11:34:21: 0 ActionThread: closing C:\Program Files (x86)\EventGhost\plugins\Mouse
11:34:21: 0 ActionThread: Mouse.__stop__()
11:34:21: 0 ActionThread: Mouse.__close__()
11:34:21: 1 MainThread: shutting down
11:34:21: 0 EventThread: EventThread.__MainLoop => None
11:34:21: 0 ActionThread: ActionThread.__MainLoop => None
11:34:21: 1 MainThread: MainMessageReceiver.Stop()
11:34:21: 0 MainMessageReceiver: MainMessageReceiver.__MainLoop => None
11:34:21: 0 MouseThread: MouseThread.run => None
11:34:21: 1 MainThread: Waited for threads shutdown: 0.050914 s
11:34:21: 1 MainThread: Done!