I gave it a shot
Try this:
Instead of starting the programs "the Renamer" and "Ember Media Manager" directly from EG as you do now, replace those with the python scripts instead. The programs will then be started by separate threads and will not block EG.
You have to edit the scripts so that they fit with the correct program names and paths, I did the samples using wordpad as example...
To get the correct syntax for a program start, you can just do "Copy As Python" with your existing configuration.
I do not know if this will be enough to make EG work directly, it might be that your 'Kill Powershell" commands must be moved to the scripts as well but we can start without to see what happens
Best regards
Python Script for 'the Renamer'
Code: Select all
from threading import Thread, Event
def theRenamer(theRenamerThreadEvent):
eg.plugins.System.Execute(
u'C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe',
u'',
0,
False,
2,
u'C:\\Program Files\\Windows NT\\Accessories',
False
)
theRenamerThreadEvent.set()
print "theRenamer thread finished"
theRenamerThreadEvent = Event()
theRenamerThread = Thread(
target=theRenamer,
args=(theRenamerThreadEvent,)
)
theRenamerThread.start()
print "Starting theRenamer thread"
Python Script for 'Ember Media Manager'
Code: Select all
from threading import Thread, Event
def emberMediaManager(emberMediaManagerThreadEvent):
eg.plugins.System.Execute(
u'C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe',
u'',
0,
False,
2,
u'C:\\Program Files\\Windows NT\\Accessories',
False
)
emberMediaManagerThreadEvent.set()
print "emberMediaManager thread finished"
emberMediaManagerThreadEvent = Event()
emberMediaManagerThread = Thread(
target=emberMediaManager,
args=(emberMediaManagerThreadEvent,)
)
emberMediaManagerThread.start()
print "Starting emberMediaManager thread"