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.

EventGhost Close command won't close XBMC.exe

If you have a question or need help, this is the place to be.
Post Reply
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

EventGhost Close command won't close XBMC.exe

Post by ijourneaux »

I created the simple eventghost macro to react to an MCE button press, close XBMC.exe and startup BeyondTV. Rather than completely closing XBMC, this just closes the XMBC window but XBMC still shows up as running in the task manager process list. Under these circumstances, I can't just start XMBC, I have to first kill it in task manager then start XBMC.

The equivlent macro that stops BeyondTV and starts XBMC seems to work correctly. Is this a bug?

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
    <Macro Name="Close XBMC" Expanded="True">
        <Event Name="MceRemote.TV" />
        <Action>
            Window.FindWindow(u'XBMC.exe', None, None, None, None, None, True, 0.0, 2)
        </Action>
        <Action>
            Window.Close()
        </Action>
        <Action>
            System.Execute(u'C:\\Program Files\\SnapStream Media\\Beyond TV\\BTVD3DShell.exe', u'', 0, False, 2, u'')
        </Action>
    </Macro>
</EventGhost>
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: EventGhost Close command won't close XBMC.exe

Post by stottle »

Isn't there an XBMX.close() action you should use instead of window.close()?

Brett
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Re: EventGhost Close command won't close XBMC.exe

Post by ijourneaux »

I found the XBMC.Close() function and using it gets past my problem. I think the Close function should work as well though.
Post Reply