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.

Exit Spotify - XBMC integration

If you have a question or need help, this is the place to be.
Post Reply
GCWB
Posts: 2
Joined: Tue Sep 06, 2011 1:55 pm

Exit Spotify - XBMC integration

Post by GCWB »

Hi, I have a fully automated HTPC thanks to EventGhost. I am new to EventGhost, and have only knowledge of the basic functions already available.
I have successfully setup Chrome and iTunes however I am having a constant issue with spotify. This is how it's laid out right now, forgive me if it looks a mess, I experimented a lot and Spotify is the issue here.

Image

Spotify does not close upon pressing the Red X. You can only close it via File/Exit or right clicking the bottom right taskbar icon and pressing quit.
You say Task Kill? Well, yes, that's exactly what I am trying to perform, however what I can't find, is the event to trigger it.
When X or Minimise is pressed, the event 'Task.Deactivated.Spotify' is all I have to run on. There is also 'Task.Activated.Desktop".
I experimented with both for a brief time, yet found out that they were both used too much and caused XBMC to boot up prematurely or in inappropriate instances.

You'll note that in the screenshot I have created a CMD file that terminates the process when run. So the only part I can't get to happen, is to connect that CMD file, with the Spotify Red X.

What I want to do?
Well Spotify starts up perfectly, maximises automatically and everything. I am configuring this system to work with technophobes, so preferably I should press the X and XBMC will boot up.
What I can't do?
Press the X and terminate spotify.

Final note:
I've seen threads around here, I've browsed and searched for a solution, yet I couldn't find one. I'm not educated with scripts, which is why I'm trying to solely use the plugins. If you do advise me on scripts, please bare with me. At the time of that screenshot I was reconfiguring the iTunes setup, so ignore any instances there, Spotify is the issue.
GCWB
Posts: 2
Joined: Tue Sep 06, 2011 1:55 pm

Re: Exit Spotify - XBMC integration

Post by GCWB »

After a Lot of experimentation, I found a solution.

If you Right Click Spotify in the bottom right taskbar, and click "hide from taskbar when closed" and have the Process Watcher plugin installed, you'll get a new task coming up, called "Task.ClosedWindow.Spotify". Clearly this only appears if this option is toggled to ON. With that in mind, you can now configure a Task Kill Process on this event. However if you'd rather keep Spotify open for a quick boot-up, you can just use it to Boot XBMC back up, so that when you next access Spotify, it'll be quick and swift.

Personally I am going to use this event to enforce Spotify's process kill, so that XBMC will have all the CPU it can get.
Post Reply