Page 2 of 7

Re: Snarl

Posted: Tue Mar 04, 2014 7:13 am
by Pako
z3us wrote:What┬┤s wrong?

Code: Select all

File "C:\Program Files (x86)\EventGhost\plugins\Snarl\__init__.py", line 141, in <module>
    import pySnarl
ImportError: No module named pySnarl
This means, that in folder C:\Program Files (x86)\EventGhost\plugins\Snarl is missing the file pySnarl.py.
The contents of that directory should look like this:
Snarl_plugin.png
Snarl_plugin.png (1.89 KiB) Viewed 7940 times
Pako

Re: Snarl

Posted: Tue Mar 04, 2014 9:27 am
by z3us
I┬┤m stupid.
Thanks

Re: Snarl

Posted: Wed Mar 05, 2014 7:01 pm
by barnabas1969
Pako,

I have not worked with the On Screen Display in EG. Does this plugin (or the default OSD) allow displaying messages/menus while watching a full screen video that takes exclusive control of the video adapter? In other words, will this force the full screen video into the background while the OSD is being displayed?

Re: Snarl

Posted: Thu Mar 06, 2014 4:53 pm
by Pako
1) Default OSD plugin
OSD frame is always on top (even in the case, when foreground application is in fullscreen mode).

2) Snarl
This behavior can be selected as required:
SnarlPreferences.png
Pako

Re: Snarl

Posted: Sun Mar 16, 2014 12:03 pm
by Pako
There is a new version (0.0.3) of Snarl plugin.
I've added an option to define event payload (notification user menu).

Pako

Re: Snarl

Posted: Tue Mar 18, 2014 11:32 am
by Silverhawk
Thanks for the update Pako! Also fixed custom expired/invoked/closed messages for me. I'd like to use variables as payload though, this doesn't work atm. I tried to change the plugin and add a ParseString but haven't been able to get it to work properly.

Re: Snarl

Posted: Tue Mar 18, 2014 12:27 pm
by Pako
Silverhawk wrote:I'd like to use variables as payload though, this doesn't work atm.
Yes, it is impossible at this moment.
But I'm working on it.
In fact, it is quite difficult, because it is necessary to store in memory eg.event object and eg.result object for each call of Notify action ...
But for me, it even works already, but I still have to solve some cosmetic changes.

Pako

Re: Snarl

Posted: Wed Mar 19, 2014 8:48 am
by Silverhawk
Alright, good to hear as I stopped trying :oops: . Will it also be possible to send a payload on closed/invoked/expiration?

Re: Snarl

Posted: Wed Mar 19, 2014 9:30 am
by Pako
Silverhawk wrote:Will it also be possible to send a payload on closed/invoked/expiration?
I have it also in the plan, but it will be up in the next version.
Otherwise you have to wait too long.
I suppose a version that supports variables in the user menu will be available today.

Pako

Re: Snarl

Posted: Wed Mar 19, 2014 10:47 am
by Pako
Done. New version 0.0.4 released.
Notification user menu now supports also variables.
It may look like this:
SnarlPluginMenu0b.png
SnarlPluginMenu0b.png (4.61 KiB) Viewed 7852 times
Note: In this example, there must exist a variable eg.globals.testVar.

Pako

Re: Snarl

Posted: Thu Mar 20, 2014 11:32 am
by Silverhawk
Thanks Pako!

Re: Snarl

Posted: Sat Mar 29, 2014 6:04 am
by Pako
I just released a new version 0.0.5.
There is incorporated promised feature: customized events on notification disappearance can carry a payload now and supports also variables.

Pako

Re: Snarl

Posted: Tue Apr 01, 2014 12:38 pm
by joaomgcd
Hi Pako. :)

I'm getting an exception after adding the Snarl Plugin to EventGhost now.
Don't know if it matters, but I didn't use the plugin before.
Thanks!
Here's the stack trace:

Exception in thread SnarlWorkerThread:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 356, in __MainLoop
self.Finish()
File "C:\Program Files (x86)\EventGhost\plugins\Snarl\__init__.py", line 631, in Finish
self.snarl.Destroy()
AttributeError: 'NoneType' object has no attribute 'Destroy'
Traceback (most recent call last) (1630):

File "C:\Program Files (x86)\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
func(*args, **kwargs)
File "C:\Program Files (x86)\EventGhost\plugins\Snarl\__init__.py", line 674, in CheckWorkerThread
self.thread.Start(100.0)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 125, in Start
self.Func(self.__setupFunc, timeout)()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\plugins\Snarl\__init__.py", line 578, in Setup
clss) # classes
File "C:\Program Files (x86)\EventGhost\plugins\Snarl\pySnarl.py", line 81, in __init__
self.app = gencache.EnsureDispatch("libsnarl25.SnarlApp")
File "win32com\client\gencache.pyc", line 537, in EnsureDispatch
File "win32com\client\gencache.pyc", line 240, in GetModuleForCLSID
File "win32com\client\makepy.pyc", line 318, in GenerateChildFromTypeLibSpec
File "win32com\client\genpy.pyc", line 1020, in generate_child
File "ntpath.pyc", line 108, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 11: ordinal not in range(128)

Re: Snarl

Posted: Tue Apr 01, 2014 3:03 pm
by Pako
Hi João!
No, it should not happen.
I've now tried to open a blank configuration and add Snarl plugin.
Everything went without defects.
So I was looking for something on the internet and it appears,
that you have (on your PC) some file-paths that contain non-ACII characters (0xe3 = ã).
unicode error while zipfile extract

Pako

Re: Snarl

Posted: Tue Apr 01, 2014 3:34 pm
by joaomgcd
Thanks Pako.

That's probably my home folder (João Dias). Are you maybe reading or writing files there?