habe nach langer Zeit eine aktuelle Version von EventGhost installiert.
Leider funktioniert ein Plugin nich mehr. Kann mir das bitte jemand anpassen?
Code: Select all
#class ZoomPlayerPath(eg.PluginClass):
# Every EventGhost plugin should start with the import of 'eg'.
import eg
import os
import string
# Now import some other modules that are needed for the special purpose of
# this plugin.
import _winreg
from win32api import ShellExecute
# Now we can start to define the plugin by subclassing eg.PluginClass
class ZoomplayerWebcontrol(eg.PluginClass):
def __close__(self):
eg.notice("closing system plugin")
eg.notice("done closing system plugin")
def __init__(self):
self.AddAction(Play)
# EventGhost will monitor the creation of every new subclass of
# eg.ActionClass, so everything that is finally needed is to call
# self.AddAllActions() to instantiate all defined actions.
self.AddAllActions()
class Play(eg.ActionClass):
def __call__(self):
file = 'C:\Programme\Zoom Player\zplayer.exe'
os.spawnv(os.P_NOWAIT, file, (file,) + (eg.event.payload[1],))ze_sniper1