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.

Snarl

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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 7943 times
Pako
z3us
Posts: 42
Joined: Fri Jul 29, 2011 2:35 am

Re: Snarl

Post by z3us »

I┬┤m stupid.
Thanks
barnabas1969
Experienced User
Posts: 133
Joined: Sat Feb 04, 2012 1:42 am

Re: Snarl

Post 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?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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
Silverhawk
Posts: 16
Joined: Sun Nov 10, 2013 6:19 pm

Re: Snarl

Post 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.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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
Silverhawk
Posts: 16
Joined: Sun Nov 10, 2013 6:19 pm

Re: Snarl

Post by Silverhawk »

Alright, good to hear as I stopped trying :oops: . Will it also be possible to send a payload on closed/invoked/expiration?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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 7855 times
Note: In this example, there must exist a variable eg.globals.testVar.

Pako
Silverhawk
Posts: 16
Joined: Sun Nov 10, 2013 6:19 pm

Re: Snarl

Post by Silverhawk »

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

Re: Snarl

Post 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
joaomgcd
Posts: 17
Joined: Tue Oct 02, 2012 9:42 pm

Re: Snarl

Post 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)
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Snarl

Post 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
joaomgcd
Posts: 17
Joined: Tue Oct 02, 2012 9:42 pm

Re: Snarl

Post by joaomgcd »

Thanks Pako.

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