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.

Open/kill program based on if this or that

If you have a question or need help, this is the place to be.
Post Reply
DeathAxe
Posts: 14
Joined: Fri Dec 19, 2008 8:38 pm

Open/kill program based on if this or that

Post by DeathAxe »

Hi folks, I am using a button press for closing XBMC, a wait, then using a cmd for task killing, then reopening XBMC (I have had to experiment with setting a longer time inbetween kill and open, as 5 seconds is not working any more to fix the issue of "xbmc outputs to 1024x768 default resolution if the PC is turned on while the TV is turned off". For some reason with gotham, 5 seconds isn't enough time for the tv resolution to reset. This of course can be fixed by the win devs of XBMC but that is another story)

I would like to expand on this with the following:
if xbmc is running = run commands to close xbmc, task kill, launch xbmc
if xbmc is not running = command to just open xbmc

is this possible?

Thanks folks!
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Open/kill program based on if this or that

Post by blaher »

DeathAxe wrote: if xbmc is running = run commands to close xbmc, task kill, launch xbmc
Find window action. If it finds xbmc.exe, continue macro, and vice versa. You can also use the 'jump to' action in conjunction with the find window to do what you want.

Here's how I use it in a couple of places:
Attachments
2Capture.PNG
2Capture.PNG (19.27 KiB) Viewed 2244 times
Capture.PNG
Post Reply