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.

Kill process in Win7 - anyone done this with EG?

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

Kill process in Win7 - anyone done this with EG?

Post by Livin »

At times I cannot get EG to do a good job finding the XBMC window and close it as it should. So after a period of time XBMC will hang (I get a black screen) and I must kill the process manually. As you know if you use Win7, it tries to have the app exit gracefully and/or "find a solution" when you use task manager to kill the process.

I'd like to simply kill the process with EG by using a IR command.

Anyone know a simple way to kill the process?
Last edited by Livin on Sun Jan 03, 2010 10:16 pm, edited 1 time in total.
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: Kill process in Win7 - anyone done this with EG?

Post by Bartman »

you can use the taskkill command line utitlity
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Kill process in Win7 - anyone done this with EG?

Post by Livin »

any examples/tips on how to have EG try to close the EXE and if it fails, after a period of time - like 60 seconds, have it kill the process?
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: Kill process in Win7 - anyone done this with EG?

Post by Bartman »

have a look into the sendmessagetimeout function to let the application finish and hard kill the process afterwards if it fails.
brille
Posts: 4
Joined: Sun Jan 03, 2010 11:07 pm

Re: Kill process in Win7 - anyone done this with EG?

Post by brille »

if you just want to kill a process you can use pskill - i use it in win7 (i have EG run a .bat file with severel pskill commands in it)

google can find the utility for you.

br
Brille
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Kill process in Win7 - anyone done this with EG?

Post by Livin »

Bartman wrote:have a look into the sendmessagetimeout function to let the application finish and hard kill the process afterwards if it fails.
Is this a Python function? I could not find any info on it.
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: Kill process in Win7 - anyone done this with EG?

Post by Bartman »

Livin wrote:
Bartman wrote:have a look into the sendmessagetimeout function to let the application finish and hard kill the process afterwards if it fails.
Is this a Python function? I could not find any info on it.
win32gui.SendMessageTimeout is a wrapper for the windows function
Post Reply