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.

start programs after another exits

If you have a question or need help, this is the place to be.
Post Reply
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

start programs after another exits

Post by ForSSux »

Hi There,

I use this program to start xbmc on an old Aspire3633 acer laptop, to let it run smoothly I had to disable the explorer.exe shell.
Thanks to you guys I'm able to view my movies without glitches....I'm using Evenghost 0.3.7r1194 as the replacement shell thanks thanks
This laptop is for a person that doesn't understand a lot of PC, so telling him to do a CTRL alt Del to start c:\windows\explorer.exe is a no go..

Now the question:
I would like to start c:\windows\explorer.exe after the user quits XBMC.
So in essence I would like to start a program after another one quits..how do I do that?

This is necessary because otherwise the virus update doesn't start and he cant access the web..

Thanks for reading
Guy Forssman
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: start programs after another exits

Post by jonib »

ForSSux wrote:Now the question:
I would like to start c:\windows\explorer.exe after the user quits XBMC.
So in essence I would like to start a program after another one quits..how do I do that?
Try this plugin Task Create/Switch Events it creates events when programs start and exit.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

jonib wrote:
ForSSux wrote:Now the question:
I would like to start c:\windows\explorer.exe after the user quits XBMC.
So in essence I would like to start a program after another one quits..how do I do that?
Try this plugin Task Create/Switch Events it creates events when programs start and exit.

jonib
Hi I noticed it's already in the autostart but how do I proceed?
Thanks for the very fast reply
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: start programs after another exits

Post by jonib »

ForSSux wrote:Hi I noticed it's already in the autostart but how do I proceed?
There is a text "Log only assigned and activated events" in the bottom of EventGhost's window, uncheck it if it's checked, now you should get different events in the log window when programs start/stop and others.

Check this thread for more information about detecting programs and changing what EventGhost controls.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

jonib wrote:
ForSSux wrote:Hi I noticed it's already in the autostart but how do I proceed?
There is a text "Log only assigned and activated events" in the bottom of EventGhost's window, uncheck it if it's checked, now you should get different events in the log window when programs start/stop and others.

Check this thread for more information about detecting programs and changing what EventGhost controls.

jonib
Hi jonib,

thanks for the quick replay...Log only assigned and activated events is unchecked and I see indeed what happens when I start xbmc or when I manually start explorer.exe
I have the xbmc plugin and a macro with....following content
Main.OnInitAfterBoot
Start Program:XBMC.exe

XBMC starts so that's fine, unfortunately when I close XBMC inside XBMC nothing is logged.

I looked in plugins after the Process watcher you mentioned in the other thread.....but I couldn't find it


Thanks for the lightning reply
Guy Forssman
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: start programs after another exits

Post by jonib »

ForSSux wrote:XBMC starts so that's fine, unfortunately when I close XBMC inside XBMC nothing is logged.
that's weird, I get:

Code: Select all

Task.Deactivated.XBMC
Task.ClosedWindow.XBMC
Task.Destroyed.XBMC
I looked in plugins after the Process watcher you mentioned in the other thread.....but I couldn't find it
I was sure it was included in EventGhost but I was wrong, you can get it here, maybe it works.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

Thanks,

I'm getting closer; manualy starting the macro's works, but on reboot or manually starting the first one only the first one gets started exiting XBMC doesn't launch the second one when I quit XBMC.

What am I doing wrong?
This is my config... noticed that xbmc is already closed but nothing shows in the event log


Thanks for the premium suport
Guy Forssman
Attachments
xbmc1.JPG
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: start programs after another exits

Post by jonib »

ForSSux wrote:What am I doing wrong?
This is my config... noticed that xbmc is already closed but nothing shows in the event log
As you are not running explorer and you don't get any Task events maybe the Task Create/Switch Events needs Explorer, try it with explorer running.
Edit: I looked in Task Create/Switch Events source and it looks like it uses explorer so it will probably not run without.
Have you tried Process watcher?

If both fail, you could maybe use the Window->Find a window action in a loop with EventGhost->Wait some time action, to look for the XBMC window.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

The reason explorer is not running is because XBMC will be to slow to handle video files.... system goes to 100% when I drop the explorer as shell and use a external player like vlc in conjunction with XBMC the CPU usage drops significantly...

This find active window seems complicated, but I will give it a try and let you now my results thanks in advance

Guy Forssman
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: start programs after another exits

Post by jonib »

ForSSux wrote:This find active window seems complicated, but I will give it a try and let you now my results thanks in advance
You didn't say if you tried the Process watcher plugin? as it don't seem to use Explorer.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: start programs after another exits

Post by Livin »

Process Watcher link... http://www.eventghost.org/forum/downloa ... php?id=483

not sure why it is not in the download-able builds.
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
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

Hi I didn't try it yet...maybe tonight...
I will let you now the results


Thanks for the reply's
Guy Forssman
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

Hi There,

Finnally suces with the process plugin, thanks for answering al my questions....

On more, how do I kill Eventghost after succesfully launching explorer?

Many Thanks
Guy Forssman


ps I added my current config
Attachments
xbmc2.JPG
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: start programs after another exits

Post by jonib »

ForSSux wrote:Finnally suces with the process plugin, thanks for answering al my questions....
Glad you got it working, and you're welcome.
On more, how do I kill Eventghost after succesfully launching explorer?
I couldn't find a simple way, maybe someone else knows.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ForSSux
Posts: 8
Joined: Sun Aug 30, 2009 8:36 am

Re: start programs after another exits

Post by ForSSux »

Hi There,

I have total succes now...
I have created a CloseEventGhost.bat file wich I placed in the c:\Programs Files\EventGhost directory
the content of this file is (TSKILL /A /V EventGhost )

I've inclued my working configuration

Hope other like this to
Thanks
Guy Forssman
Attachments
xbmc3.JPG
Post Reply