<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Name="Configuration Tree" Expanded="True" Version="1016" Guid="{EF32C95B-76E5-4085-A985-D138AA326874}" Time="1265403187.03">
    <Autostart Name="Autostart">
        <Plugin File="Task" Identifier="Task">
            gAIpLg==
        </Plugin>
        <Plugin File="Keyboard" Identifier="Keyboard">
            gAIpLg==
        </Plugin>
        <Plugin File="HID" Identifier="HID">
            gAIoWAAAAABxAIiJiVVYXFw/XGhpZCN2aWRfMTEzMCZwaWRfNjYwNSZjb2wwMyM2JjE3N2UyYTBkJjAmMDAwMiN7NGQxZTU1YjItZjE2Zi0xMWNmLTg4Y2ItMDAxMTExMDAwMDMwfXEBTTARWAcAAABQaW5nLUlUcQJNBWZYDAAAAFVTQiBSZW1vdGUgIHEDTQABiXRxBC4=
        </Plugin>
        <Plugin File="HID" Identifier="HID2">
            gAIoWAYAAABkaU5vdm9xAImIiVWDXFw/XGhpZCN7MDAwMDExMjQtMDAwMC0xMDAwLTgwMDAtMDA4MDVmOWIzNGZifV92aWQmMDAwMjA0NmRfcGlkJmIzMGMmY29sMDkjOCYyZGJiNThlZSYwJjAwMDgjezRkMWU1NWIyLWYxNmYtMTFjZi04OGNiLTAwMTExMTAwMDAzMH1xAU1tBFgQAAAATG9naXRlY2ggICAgICAgIHECTQyzWD0AAABMb2dpdGVjaCBkaU5vdm8gTWluaSBLZXlib2FyZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcQNLAIl0cQQu
        </Plugin>
        <Plugin File="HID" Identifier="HID3">
            gAIoWAYAAABkaU5vdm9xAImIiVWDXFw/XGhpZCN7MDAwMDExMjQtMDAwMC0xMDAwLTgwMDAtMDA4MDVmOWIzNGZifV92aWQmMDAwMjA0NmRfcGlkJmIzMGMmY29sMDgjOCYyZGJiNThlZSYwJjAwMDcjezRkMWU1NWIyLWYxNmYtMTFjZi04OGNiLTAwMTExMTAwMDAzMH1xAU1tBFgQAAAATG9naXRlY2ggICAgICAgIHECTQyzWD0AAABMb2dpdGVjaCBkaU5vdm8gTWluaSBLZXlib2FyZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcQNLAIl0cQQu
        </Plugin>
        <Plugin File="OSDMenu" Identifier="OSMenu">
            gAIoWCYAAAAwOy00ODswOzA7MDs3MDA7MDswOzA7MDszOzI7MTszNDtBcmlhbHEASwBLFEsydHEBLg==
        </Plugin>
        <Plugin File="XBMC" Identifier="XBMC">
            gAIpLg==
        </Plugin>
        <Plugin File="Speech" Identifier="Speech">
            gAIpLg==
        </Plugin>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(290))
        </Action>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(352))
        </Action>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(463))
        </Action>
        <Action>
            EventGhost.PythonCommand(u'CurrentTask="Unknown"')
        </Action>
        <Action>
            Window.SendKeys(u'{Win+D}', False)
        </Action>
    </Autostart>
    <Folder Name="Controller" Expanded="True">
        <Folder Name="Keyboard" Enabled="False" Expanded="True" />
        <Folder Name="Remote" id="290" Expanded="True" />
    </Folder>
    <Folder Name="Context Detection" Expanded="True">
        <Macro Name="Unknown">
            <Event Name="Task.Deactivated.iTunes" />
            <Event Name="Task.Deactivated.XBMC" />
            <Event Name="Task.Deactivated.xnview" />
            <Event Name="Task.Deactivated.firefox" />
            <Event Name="Task.Deactivated.vlc" />
            <Event Name="Task.Deactivated.squeezeplay" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="Unknown"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(463))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(61))
            </Action>
        </Macro>
        <Macro Name="iTunes">
            <Event Name="Task.Activated.iTunes" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="iTunes"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(509))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(91))
            </Action>
        </Macro>
        <Macro Name="Firefox" id="805">
            <Event Name="Task.Activated.firefox" />
            <Action>
                EventGhost.PythonCommand(u'eg.result = eg.WinApi.GetWindowText(eg.WinApi.Dynamic.GetForegroundWindow())')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.result.split(\' - \')[0]=="YouTube XL"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(833), 0, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="Firefox"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(479))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(71))
            </Action>
        </Macro>
        <Macro Name="SqueezePlay">
            <Event Name="Task.Activated.squeezeplay" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="SqueezePlay"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(543))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(116))
            </Action>
        </Macro>
        <Macro Name="VLC">
            <Event Name="Task.Activated.vlc" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="VLC"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(570))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(136))
            </Action>
        </Macro>
        <Macro Name="XBMC">
            <Event Name="Task.Activated.XBMC" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="XBMC"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(605))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(158))
            </Action>
        </Macro>
        <Macro Name="XnView">
            <Event Name="Task.Activated.xnview" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="XnView"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(636))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(186))
            </Action>
        </Macro>
        <Macro Name="YouTubeXL" id="833">
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="YouTube"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(231))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(690))
            </Action>
            <Action>
                Mouse.MoveAbsolute(250, 250)
            </Action>
            <Action>
                Mouse.MoveAbsolute(960, 300)
            </Action>
        </Macro>
        <Macro Name="YouTubeFull">
            <Event Name="Task.NewWindow.firefox" />
            <Action>
                EventGhost.PythonCommand(u'CurrentTask=="YouTube"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(805), 1, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.result = eg.WinApi.GetWindowText(eg.WinApi.Dynamic.GetForegroundWindow())')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.result=="Adobe Flash Player"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(833), 1, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'CurrentTask="YouTubeFull"')
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(263))
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(740))
            </Action>
            <Action>
                Mouse.MoveAbsolute(250, 250)
            </Action>
            <Action>
                Mouse.MoveAbsolute(960, 600)
            </Action>
            <Action>
                EventGhost.FlushEvents()
            </Action>
        </Macro>
    </Folder>
    <Folder Name="App Menu" id="852" Enabled="False" Expanded="True">
        <Macro Name="Show Menu">
            <Event Name="Main.Mode.AppMenu" />
            <Action>
                OSMenu.Clear()
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchiTunes', u'iTunes')
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchFirefox', u'Firefox')
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchYouTubeXL', u'YouTubeXL')
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchVLC', u'VLC')
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchXnView', u'XnView')
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchSqueezePlay', u'SqueezePlay')
            </Action>
            <Action>
                OSMenu.AddEvent(u'LaunchXBMC', u'XBMC')
            </Action>
            <Action>
                EventGhost.FlushEvents()
            </Action>
            <Action>
                OSMenu.ShowMenu()
            </Action>
            <Action>
                XBMC.Quit()
            </Action>
            <Action>
                Window.SendKeys(u'{Win+D}', False)
            </Action>
        </Macro>
        <Folder Name="Start" Expanded="True">
            <Macro Name="Start Firefox" id="868">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\Mozilla Firefox\\firefox.exe', u'', 2, False, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Start iTunes" id="870">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\iTunes\\iTunes.exe', u'', 2, False, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Start SqueezePlay" id="872">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\SqueezePlay\\squeezeplay.exe', u'', 0, False, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Start VLC" id="874">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\VideoLAN\\VLC\\vlc.exe', u'', 0, False, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Start XBMC" id="876">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\XBMC\\xbmc.exe', u'-fs', 0, False, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Start XnView" id="878">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\XnView\\xnview.exe', u'', 0, False, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Start YouTubeXL" id="880">
                <Action>
                    System.Execute(u'{eg.folderPath.ProgramFiles}\\Mozilla Firefox\\firefox.exe', u'-url http://www.youtube.com/XL', 2, False, 2, u'')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Switch" Expanded="True">
            <Macro Name="No Switch">
                <Event Name="Main.OSMenu.CloseMenu" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'CurrentTask=="iTunes"')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(898), 0, False)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'CurrentTask=="Firefox"')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(952), 0, False)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'CurrentTask=="XBMC"')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(934), 0, False)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'CurrentTask=="XnView"')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(943), 0, False)
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(463))
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'CurrentTask="Unknown"')
                </Action>
            </Macro>
            <Macro Name="Switch to iTunes" id="898">
                <Event Name="Main.OSMenu.LaunchiTunes" />
                <Event Name="Keyboard.I" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    Window.FindWindow(u'iTunes.exe', u'iTunes', u'iTunes', None, None, 1, True, 0.0, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(870), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Switch to Firefox">
                <Event Name="Main.OSMenu.LaunchFirefox" />
                <Event Name="Keyboard.F" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    Window.FindWindow(u'firefox.exe', None, None, None, None, 1, False, 0.0, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(868), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Switch to SqueezePlay">
                <Event Name="Main.OSMenu.LaunchSqueezePlay" />
                <Event Name="Keyboard.S" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    Window.FindWindow(u'squeezeplay.exe', u'SqueezePlay {*}', None, None, None, None, False, 0.5, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(872), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Switch to VLC">
                <Event Name="Main.OSMenu.LaunchVLC" />
                <Event Name="Keyboard.V" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    Window.FindWindow(u'vlc.exe', u'VLC media player', None, None, None, None, False, 0.5, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(874), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Switch to XBMC" id="934">
                <Event Name="Main.OSMenu.LaunchXBMC" />
                <Event Name="Keyboard.X" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    Window.FindWindow(u'XBMC.exe', u'XBMC Media Center', u'SDL_app', None, None, None, False, 0.0, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(876), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Switch to XnView" id="943">
                <Event Name="Main.OSMenu.LaunchXnView" />
                <Event Name="Keyboard.N" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action>
                    Window.FindWindow(u'xnview.exe', None, u'XmainClass', None, None, 1, False, 0.5, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(878), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Switch to YouTubeXL" id="952">
                <Event Name="Main.OSMenu.LaunchYouTubeXL" />
                <Event Name="Keyboard.Y" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(852))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(33))
                </Action>
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(352))
                </Action>
                <Action Name="Find Window: firefox.exe: YouTube XL">
                    Window.FindWindow(u'firefox.exe', u'YouTube XL{*}', u'MozillaUIWindowClass', u'', u'MozillaWindowClass', 5, False, 0.0, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(880), 1, False)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
        </Folder>
    </Folder>
</EventGhost>
