New plugin is not visible after restarting EventGhost

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
pmendiuk
Posts: 3
Joined: Tue Apr 30, 2013 3:39 pm

New plugin is not visible after restarting EventGhost

Post by pmendiuk » Mon Sep 23, 2013 4:48 am

I am new to EventGhost and I am having difficulty trying to create a new plugin. I created a new subdirectory within the plugins directory, placed the __init__.py file within that directory and then restarted EventGhost. I do not see the new plugin when I try to add it to the tree. Is there anything else required to make the new plugin visible to EventGhost?

Here is the plugin:

Code: Select all

eg.RegisterPlugin(
    name = "My New Plugin",
    author = "Me",
    version = "0.0.1",
    kind = "other",
    description = "This is an example plugin.",
	guid = "{10573BDA-EBC0-48D6-AEFA-596FB48956C2}"
)

import eg

class MyNewPlugin(eg.PluginBase):

    def __init__(self):
        self.AddAction(HelloWorld)


class HelloWorld(eg.ActionBase):

    def __call__(self):
        print "Hello World!"

Sorry for the newb question

Patrick

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: New plugin is not visible after restarting EventGhost

Post by Pako » Mon Sep 23, 2013 11:49 am

I do not know what you're doing wrong.
For me, it works normally:
MyNewPlugin.png
Perhaps only one question: what is the name of your plugin subdirectory?
And one more advice: run EventGhost with -debug switch and then examine the Log.txt .

Pako

pmendiuk
Posts: 3
Joined: Tue Apr 30, 2013 3:39 pm

Re: New plugin is not visible after restarting EventGhost

Post by pmendiuk » Tue Sep 24, 2013 6:21 am

Thanks for your response. The solution was to uninstall EventGhost AND clear the registry of all references to EventGhost prior to reinstalling. After clearing the registry and reinstalling EG the plugin was visible. Previous uninstallations made no difference in behaviour.

Thanks again
Patrick

Post Reply