Page 1 of 1

new event: all event

Posted: Fri Jul 05, 2013 10:26 am
by totya
Hi!

Girder 3.29 (free) is not really new apllication, about 10 years ago. But this app know this event: fire on all event.

All event: all remote control event/any remote key button pressed

Why need this.

Control to eventghost folder enable/disable/exclusive etc.

At present time, Evenghost know this function: taks activate (from task/create switch events). This event is called, if app is activated (get focus).

But this is not working with any application. Example with PotPlayer. See... viewtopic.php?f=2&t=3599&hilit=potplayer&start=15 Under win7 x64, I don't get any event, if potplayer is activated.

I think the solution, similar to old girder, the new event: "all event". If someone write this function (plugin), important, this is the first event (!), example:
Pressed "vol up" key on remote. Events:

1. All events. (new event).

After this events is handled goto #2

2. volume up event.

Under all events, I can check, which application is the focused - GetWindowText(GetForegroundWindow()).upper() -, and I can control to eventghost folders (enable/disable).

Thanks.

Re: new event: all event

Posted: Fri Jul 05, 2013 7:25 pm
by jonib
Looks like "All events" is supported in EventGhost. I tested to put an "*" asterisk for the event name and it seems to match any event.

Edit: You can also try the Application Observer or Process Watcher plugins to see if they detect PotPlayer.

jonib

Re: new event: all event

Posted: Fri Jul 05, 2013 11:17 pm
by totya
jonib wrote:Looks like "All events" is supported in EventGhost. I tested to put an "*" asterisk for the event name and it seems to match any event.

Edit: You can also try the Application Observer or Process Watcher plugins to see if they detect PotPlayer.

jonib
Hi!

Process Watcher or Application Observer plugin is not OK for me, because I need control potpayer only, when this app is the topmost (foreground) window.

"*" event LOL. And this is working. But this is nok OK for me.

I change PotPlayer folder enable/disable, depend on this application is the topmost window or not. With "*" event, this is easy - thanks for this tip.

Image

Problem:

Starting state: Potplayer (control) folder is disabled.
I click to PotPlayer window (this is the topmost window now).
I press example:"play" key on remote control.
"*" event is working, Potplayer (control) folder is changed to enabled.
But this (first) event: "play" is lost, not executed in Potplayer folder. Next pressed key is working...

I think the problem, this two event: "*" and "play" executed parallel. But in first time, Potplayer folder is disabled... and this event is lost.

I wrote this in my last post:
All event execute order is important:
1. All events. (new event).

After this events is handled(!) goto #2

2. event with event name, example: volume up.

Any idea? Thanks.

Re: new event: all event

Posted: Fri Jul 05, 2013 11:50 pm
by jonib
totya wrote:I think the problem, this two event: "*" and "play" executed parallel. But in first time, Potplayer folder is disabled... and this event is lost.
As there is only one event when you press play and your play macro is disabled it won't execute. Maybe you can use the "Trigger event" action when you have enabled the macros for Potplayer.

I probably won't have any more ideas.

jonib

Re: new event: all event

Posted: Sat Jul 06, 2013 12:31 am
by totya
jonib wrote:
totya wrote:I think the problem, this two event: "*" and "play" executed parallel. But in first time, Potplayer folder is disabled... and this event is lost.
As there is only one event when you press play and your play macro is disabled it won't execute. Maybe you can use the "Trigger event" action when you have enabled the macros for Potplayer.

I probably won't have any more ideas.

jonib
Hi!

With TriggerEvent, the result is same (and need additional overflow checking).

Image

But thanks for these tips.

Re: new event: all event

Posted: Sat Jul 06, 2013 10:43 am
by totya
jonib wrote:...Maybe you can use the "Trigger event" action when you have enabled the macros for Potplayer.jonib
If I understand correctly... after enabled potplayer folder, need re-trigger actual event example: eg.TriggerEvent(eg.event.string,payload='IGNORE')

Okay, I testing, this is working. But this solution is not error-free. Because this is common error of all re-triggered event in Eventghost:

in destionation folder, "autorepeat current macro" is not working anymore. This function need of autorepeat-needed keys, example forward/rewind, volume functions.

If I place "autorepeat current macro" in start place (where I create re-triggered event - see this picture below), this is too not working,

Image

because repeated event is not executed immediately, only if I release remote control key, after I get all events all at once, example I get 15 vol key pressed all at once...

Thanks.