Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

altes Plugin in neuer EventGhost Version

Allgemeines zum Thema EventGhost
Post Reply
ze_sniper1
Posts: 29
Joined: Sat Aug 19, 2006 2:50 pm

altes Plugin in neuer EventGhost Version

Post by ze_sniper1 »

Hallo,

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],))
Danke

ze_sniper1
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: altes Plugin in neuer EventGhost Version

Post by topix »

Bei EG ist doch ein ZoomPlayer-Plugin dabei. Kannst Du das nicht benutzen oder hat dein Plugin irgendwelche besonderen Funktionen?
ze_sniper1
Posts: 29
Joined: Sat Aug 19, 2006 2:50 pm

Re: altes Plugin in neuer EventGhost Version

Post by ze_sniper1 »

... in dem Plugin wurde dazumals etwas angepasst.

Konnte das roblem aber mittlerweile durch diverse Versuche l├Âsen.

Danke.

ze_sniper1
Post Reply