Help needed with Start/Stop plugin from a python script
Posted: Sun Mar 08, 2009 2:44 pm
Hi all,
I have a python script which controls a number of remote plugins, these are based on VMC controller and control Windows7 Media Center and it's Extenders.
However there are times i need to control then enable/disable of the plugin from within a script, after reading and decoding lots of other source i have tried :-
eg.plugins.EventGhost.EnableItem("VMCControl")
but i get a string parameter error and missing target.
Traceback (most recent call last):
Python script "96", line 17, in <module>
eg.plugins.EventGhost.EnableItem("MCXControl4")
File "C:\Program Files\EventGhost\plugins\EventGhost\__init__.py", line 134, in __call__
AttributeError: 'str' object has no attribute 'target'
Is it possible that someone could point me in the right direction.
Before you ask, yes i could define mutilple events and actions and use the Enable/Disable Item option within the plugin tree or XML file, i am specifically enquiring about doing this from within a python script.
Thank you in advance for any help.
Regards
Nigel
I have a python script which controls a number of remote plugins, these are based on VMC controller and control Windows7 Media Center and it's Extenders.
However there are times i need to control then enable/disable of the plugin from within a script, after reading and decoding lots of other source i have tried :-
eg.plugins.EventGhost.EnableItem("VMCControl")
but i get a string parameter error and missing target.
Traceback (most recent call last):
Python script "96", line 17, in <module>
eg.plugins.EventGhost.EnableItem("MCXControl4")
File "C:\Program Files\EventGhost\plugins\EventGhost\__init__.py", line 134, in __call__
AttributeError: 'str' object has no attribute 'target'
Is it possible that someone could point me in the right direction.
Before you ask, yes i could define mutilple events and actions and use the Enable/Disable Item option within the plugin tree or XML file, i am specifically enquiring about doing this from within a python script.
Thank you in advance for any help.
Regards
Nigel