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.

Application Observer

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

Application Observer

Post by Pako »

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 763 times
__init__.py
Plugin Application Observer - version 0.0.2
(9.84 KiB) Downloaded 465 times
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Application Observer

Post by Livin »

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

Re: Application Observer

Post by Pako »

Here is an example of the contents of the log,
EGlog.jpg
EGlog.jpg (29.55 KiB) Viewed 9537 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
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Application Observer

Post by Livin »

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

Re: Application Observer

Post by Pako »

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
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Application Observer

Post by Livin »

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
schindi77
Posts: 10
Joined: Mon Oct 05, 2009 4:55 am

Re: Application Observer

Post by schindi77 »

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

Re: Application Observer

Post by Pako »

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
Post Reply