Search found 262 matches

by Luca Brasi
Wed Oct 04, 2017 8:46 pm
Forum: Plugin Support
Topic: libCEC plugin for Pulse Eight HDMI-CEC usb adapter
Replies: 178
Views: 103567

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

hi kgschlosser, did you find the time to have a look at the beta after my last error? I wanted to try it again and couldn't get it to work. I tried your directions in the post a couple of pages back but I still get this error: 22:40:40 Traceback (most recent call last) (0.5.0-rc4): 22:40:40 File "wx...
by Luca Brasi
Wed Oct 04, 2017 5:49 am
Forum: Feature Requests
Topic: Syslog forward
Replies: 15
Views: 13160

Re: Syslog forward

Hi @topix, I had some strange behavior on my htpc lately. Whenever I used eg to connect my sys to a vpn-server eg stalled and had to be restarted. Even after the start it got stuck from time to time. I noticed that this would only happen if the vpn connection was still active. So I thought about whi...
by Luca Brasi
Wed Sep 27, 2017 10:51 am
Forum: EventGhost News
Topic: New Location!!!
Replies: 26
Views: 13584

Re: New Location!!!

Hey guys,
thank you so much for all you've done the last couple of days. Haven't been around for some days and when I came back I was amazed by the new looks of and responsiveness of the forums and the wiki alike.
by Luca Brasi
Wed Sep 27, 2017 10:44 am
Forum: Coding Corner
Topic: Can I access an array using a variable?
Replies: 6
Views: 3352

Re: Can I access an array using a variable?

This is why this forum is awesome!
I have this folder in my bookmarks where I put posts like kgschlosser's with all the info to get back to them whenever I need the info.
by Luca Brasi
Thu Sep 21, 2017 1:11 pm
Forum: Coding Corner
Topic: Global functions?
Replies: 20
Views: 8951

Re: Global functions?

wtf :-)
I had this page open for some time before asking you for help. You must have posted the exact same thing I was asking for in the meantime...
Thanks so much. I'll check it out soon
by Luca Brasi
Thu Sep 21, 2017 12:36 pm
Forum: Coding Corner
Topic: Global functions?
Replies: 20
Views: 8951

Re: Global functions?

@kgschlosser
Dude, can you give me a hint why I can't run the thread twice? I'm trying to figure it out myself but I have the feeling I will have to do some online courses on threading and classes first...
by Luca Brasi
Thu Sep 21, 2017 7:13 am
Forum: Coding Corner
Topic: Access eg.result of plugin inside of a script
Replies: 13
Views: 8592

Re: Access eg.result of plugin inside of a script

ok here goes another attempt at explaining this. since i made a mess of the last one! :shock: from the code I read if you call the action directly eg.plugins.SOME_PLUGIN.SOME_ACTION() it will only return the value. eg.result will only get set if an action gets run from it's GUI form. **** more info...
by Luca Brasi
Wed Sep 20, 2017 8:04 am
Forum: Coding Corner
Topic: Access eg.result of plugin inside of a script
Replies: 13
Views: 8592

Re: Access eg.result of plugin inside of a script

since all plugins are not loaded in the traditional sense. they are loaded as a script file using exec. which runs the script in it's own namespace. so when an action gets run anything that is returned from the action actually gets set into a local variable that is apart of eg.plugins.PLUGIN_NAME.p...
by Luca Brasi
Tue Sep 19, 2017 2:50 pm
Forum: Coding Corner
Topic: Access eg.result of plugin inside of a script
Replies: 13
Views: 8592

Re: Access eg.result of plugin inside of a script

I tried something and it workes... eg.plugins.Window.FindWindow(u'lightroom.exe', u'2017 - Adobe Photoshop Lightroom - Bibliothek', u'AgWinMainFrame', None, None, None, False, 0.0, 2) result = eg.plugins.Window.GrabText(False) print result screen_mmstation_20170919_16h49m22s.jpg I have the feeling t...
by Luca Brasi
Tue Sep 19, 2017 2:29 pm
Forum: Coding Corner
Topic: Access eg.result of plugin inside of a script
Replies: 13
Views: 8592

Re: Access eg.result of plugin inside of a script

But it does work in the tree:
screen_mmstation_20170919_16h27m02s.jpg
So the result from
eg.plugins.Window.GrabText(False)
seems to be fine right?
by Luca Brasi
Tue Sep 19, 2017 2:18 pm
Forum: Coding Corner
Topic: Global functions?
Replies: 20
Views: 8951

Re: Global functions?

Okidoki, I solved the first one: import threading class ThreadClass(threading.Thread): def __init__(self): self._event = threading.Event() threading.Thread.__init__(self, name='SomeThreadName') def start(self, param1, param2): self.param1 = param1 self.param2 = param2 eg.Bind('Main.OnClose', self.st...
by Luca Brasi
Tue Sep 19, 2017 8:35 am
Forum: Coding Corner
Topic: Access eg.result of plugin inside of a script
Replies: 13
Views: 8592

Access eg.result of plugin inside of a script

Hey, this info has to be sitting somewhere here in the forums but I couldn't find it. If I call a plugin form inside a script I'd like to work with its result later in the script. But if I use eg.result after calling the plugin eg.result will still be the same as before starting the script and the p...
by Luca Brasi
Tue Sep 19, 2017 8:24 am
Forum: Beta Version Bug Reports
Topic: Jump doesn't work in script with new GUID
Replies: 28
Views: 17603

Re: Jump doesn't work in script with new GUID

And one more update: That eg is set back to using xmlids seems to be specific to my system. I have some failsave actions in place which restart eg in the case of some plugins (standby control, system audio) appear to not work properly. I use the eg app control plugin for that but will have to check ...
by Luca Brasi
Mon Sep 18, 2017 5:39 pm
Forum: Coding Corner
Topic: Global functions?
Replies: 20
Views: 8951

Re: Global functions?

Ok man, thanks again for all the info :D I'm playing around with the code right now. I am running into problems when I try to call the class with parameters. As far as I can see you already included that with param1 and param2. But those two are defined in the startup script which defines the global...
by Luca Brasi
Sun Sep 17, 2017 3:19 pm
Forum: Coding Corner
Topic: Global functions?
Replies: 20
Views: 8951

Re: Global functions?

Ah yes I understand... I'll check the code later! Thanks man!