galaga4991 Wrote:Ok, how exactly can I use Eventghost so that when I launch a program with launcher XBMC closes?
If you have EventGhost running in the background, launch XBMC and then launch Hyperspin. Then close Hyperspin.
EventGhost will show in the left panel the events associated with these actions.
At that point you create a macro that you associate with the event "Hyperspin is launching" (the exact name will be in EventGhost, probably Task.Created.hyperspin).
The macro will be triggered by the Task.Created.hyperspin event and the actions needed to do what you want are two:
Window/Find a window (where you ask EventGhost to look for XBMC)
Window/Close a window (where you ask EventGhost to close XBMC if it finds it).
I did a quick example for you, based on a similar scenario.
The action activates when foobar2k launches and closes Outlook. Have a look at these two pictures:
The first one shows the macro created. The second one shows the events happening, one by one, when I launch foobar2k.
The end result is that, as soon as I launch fb2k, Outlook closes.