Is it available and can it be used in a plugin?
I want to capture a processes stdin & stdout (I start) via the GetInputStream & GetOutputStream, but to do that I need to use wxExecute (can't find that either) but first i need to use the wxProcess command.
I have tried using it like this :-
Code: Select all
from wxPython.wx import *
import wxPython
class MyPlayer(eg.PluginClass):
def __init__(self):
self.AddAction(self.PlayFile)
class PlayFile(eg.ActionWithStringParameter):
description = "Start playing a file."
def __call__(self, data):
print "PlayFile: '", data, "'"
print "Process: ", wxProcess(self)
Code: Select all
Process: Traceback (most recent call last):
Python script "5", line 2, in ?
eg.plugins.MyPlayer.PlayFile(eg.event.payload)
Python script "plugins/MyPlayer/__init__.py", line 152, in __call__
Error in Action: "Python Script"
Traceback (most recent call last):
File "C:\Program Files\EventGhost\eg\TreeItems\ActionItem.py", line 298, in Execute
File "eg/CorePlugins/EventGhost\PythonScript.py", line 330, in __call__
ValueError: invalid literal for int(): plugins/MyPlayer/__init__.py