Application Observer

Questions and comments specific to a particular plugin should go here.

Application Observer

Postby Pako » Thu Sep 23, 2010 4:59 pm

I do not like to use Task plugin, because it generates too many events.
That's why I create greatly simplified replacement - Application Observer plugin.
He generates events only when you start and end application. And that's only for those applications that you choose.
ApplicationObserver.jpg
I do not know if someone is interested, but maybe yes.

Pako
Attachments
__init__.py
Plugin Application Observer - version 0.0.4
Added 2011-06-19
(9.34 KiB) Downloaded 618 times
__init__.py
Plugin Application Observer - version 0.0.2
(9.84 KiB) Downloaded 348 times
User avatar
Pako
Plugin Developer
 
Posts: 2257
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Application Observer

Postby Livin » Mon Oct 11, 2010 9:41 pm

Can you give an examples of usage?

I'd like to understand how this differs vs triggering Macros based on the following...

Task.Created
Task.NewWindow
Task.ClosedWindow
Task.Activated
Task.Deactivated


thx
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
Livin
Experienced User
 
Posts: 790
Joined: Wed Oct 08, 2008 4:56 am

Re: Application Observer

Postby Pako » Tue Oct 12, 2010 7:01 am

Here is an example of the contents of the log,
EGlog.jpg
EGlog.jpg (29.55 KiB) Viewed 7019 times
if I added plugins Task Create/Switch Events and Application observer to the configuration.
Then I opened a text file in notepad and again I closed it.
I think it is clear that correlations:
Application.Launched.XXX corresponds Task.Created.XXX and
Application.Terminated.XXX corresponds Task.Destroyed.XXX

BTW: what about the testing function Window: Move Absolute?
I see that you're doing a very thorough test.
Pako
User avatar
Pako
Plugin Developer
 
Posts: 2257
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Application Observer

Postby Livin » Wed Oct 13, 2010 4:39 am

work and my 1 yr old have been keeping me too busy to really test too much. I have added move absolute but not enabled it yet... maybe tomorrow or this weekend.

I still don't understand how Application Observer provides anything beyond using native triggers?

how is Application.Launched more useful than Task.Created?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
Livin
Experienced User
 
Posts: 790
Joined: Wed Oct 08, 2008 4:56 am

Re: Application Observer

Postby Pako » Wed Oct 13, 2010 5:37 am

Livin wrote:how is Application.Launched more useful than Task.Created?
Here's something else entirely. I never claimed that it was more useful.
Pako wrote:I do not like to use Task plugin, because it generates too many events.
Note: Because I am constantly experimenting with EventGhost, I do not use the option Log only activated and assigned events.
I do not need events like Task.NewWindow, Task.ClosedWindow, Task.Activated, Task.Deactivated.
Pako
Last edited by Pako on Wed Oct 13, 2010 5:48 am, edited 1 time in total.
User avatar
Pako
Plugin Developer
 
Posts: 2257
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Application Observer

Postby Livin » Wed Oct 13, 2010 5:48 am

gotcha... I also keep that option unchecked but I use the Task Plugin since it is useful to see what state an app is in and base Macros on them.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
Livin
Experienced User
 
Posts: 790
Joined: Wed Oct 08, 2008 4:56 am

Re: Application Observer

Postby schindi77 » Sun Dec 05, 2010 10:09 am

Hi Pako!

I´m want to use your plugin to control a program called DSynchronize.exe.

It´s proper configured, but I don´t get any event after starting/closing the program.
Do you have any idea what the problem could be?

The "task create/switch events" plugin also doesn´t recognize the program at all....

If I add "c:\windows\notepad.exe" it´s also NOT recognized by your plugin, but recognized by the "task create/switch events" plugin.
Strange thing....

btw: I´m using Win7 HP 32bit....
schindi77
 
Posts: 10
Joined: Mon Oct 05, 2009 4:55 am

Re: Application Observer

Postby Pako » Sun Dec 05, 2010 2:19 pm

schindi77 wrote:If I add "c:\windows\notepad.exe" it´s also NOT recognized by your plugin, but recognized by the "task create/switch events" plugin.
Strange thing....
I thought the only one reason for this behavior:
Applications you want to observe, you must insert without a path. Thus, only "notepad.exe".
Look at the picture in the introductory article of this topic.
Pako
User avatar
Pako
Plugin Developer
 
Posts: 2257
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic


Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 4 guests