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.

Detect when an application is loaded?

If you have a question or need help, this is the place to be.
Post Reply
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Detect when an application is loaded?

Post by Livin »

I did a search and did not find it but I'm thinking this has been worked before...

I want detect that app is not already in memory and do specific actions, including load the app.
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
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Detect when an application is loaded?

Post by Bartman »

Just use the Find Window action to search for the app's main window and do a conditional fump if the previous action was not succesful.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Detect when an application is loaded?

Post by Livin »

Bartman wrote:Just use the Find Window action to search for the app's main window and do a conditional fump if the previous action was not succesful.
The idea is to check to see if XBMC is open before attempting to open it, and then enabling the keyboard emulation. Don't enable KB emulation until XBMC is already running... in case it fails to run.

I ended up doing it like the attached pic. Let me know what you think.
Attachments
eg.jpg
eg.jpg (32 KiB) Viewed 1788 times
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
mfsav2
Posts: 9
Joined: Tue Apr 28, 2009 11:00 pm

Re: Detect when an application is loaded?

Post by mfsav2 »

Were you able to do it?

I tried this sequence:

Event: X10.D
Find Window: XBMC
If successfull jum to Show Home Screen
Start Program XBMC.exe

if XBMC is open everything is fine
if XBMC is NOT open the log does not go to the IF but dies on the Find Window.

Can you help me?

Mf
Post Reply