<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Name="Configuration Tree" Expanded="True" Version="1486" Guid="{7EDB3A28-0BF0-4062-B2FE-49785C502A13}" Time="1243703447.85">
    <Autostart Name="Autostart" Expanded="True">
        <Plugin File="ZoomPlayer" Identifier="ZoomPlayer">
            gAIoWAkAAABsb2NhbGhvc3RxAE2hEoiJdHEBLg==
        </Plugin>
        <Plugin File="USB-UIRT" Identifier="USB_UIRT">
            gAKJiYmHcQAu
        </Plugin>
        <Plugin File="Foobar2000" Identifier="Foobar2000">
            gAJYMAAAAEM6XFByb2dyYW0gRmlsZXMgKHg4NilcZm9vYmFyMjAwMFxmb29iYXIyMDAwLmV4ZXEAhXEBLg==
        </Plugin>
        <Plugin Enabled="False" File="Task" Identifier="Task">
            gAIpLg==
        </Plugin>
        <Plugin File="SageTV" Identifier="SageTV">
            gAIpLg==
        </Plugin>
        <Plugin File="PowerDVD" Identifier="PowerDvd">
            gAIpLg==
        </Plugin>
    </Autostart>
    <Macro Name="Switch to mode: Foobar2000">
        <Event Name="Music" />
        <Event Name="USB_UIRT.434A044145F0" />
        <Action>
            System.Execute(u'C:\\Program Files (x86)\\foobar2000\\foobar2000.exe', u'', 2, False, 2, u'')
        </Action>
        <Action Name="Enable exclusive: Switch to mode: Foobar2000">
            EventGhost.EnableExclusive(XmlIdLink(63))
        </Action>
        <Action>
            EventGhost.Wait(3.0)
        </Action>
        <Action>
            Foobar2000.Play()
        </Action>
    </Macro>
    <Macro Name="Switch to mode: CyberLink PowerDVD">
        <Event Name="DVD" />
        <Event Name="USB_UIRT.8083DF889EE0" />
        <Action>
            System.Execute(u'C:\\Program Files (x86)\\CyberLink\\PowerDVD8\\PowerDVD8.exe', u'', 2, False, 2, u'')
        </Action>
        <Action>
            Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD', u'ATL:0050C458', None, None, None, False, 0.0, 0)
        </Action>
        <Action Name="Enable exclusive: Switch to mode: CyberLink PowerDVD">
            EventGhost.EnableExclusive(XmlIdLink(887))
        </Action>
        <Action Enabled="False">
            EventGhost.Wait(3.0)
        </Action>
        <Action Enabled="False">
            PowerDvd.Play()
        </Action>
    </Macro>
    <Macro Name="Switch to mode: Zoom Player" Enabled="False">
        <Event Name="DVD" />
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(147))
        </Action>
        <Action>
            EventGhost.JumpIfLongPress(3.0, XmlIdLink(250))
        </Action>
        <Action>
            System.Execute(u'{eg.PROGRAMFILES}\\Zoom Player\\zplayer.exe', u'/TCP: 4769', 0, False, 2)
        </Action>
        <Action>
            ZoomPlayer.fnBringToFront()
        </Action>
    </Macro>
    <Macro Name="Switch to mode: SageTV">
        <Event Name="SageTV" />
        <Event Name="USB_UIRT.6319515104F5" />
        <Action Enabled="False">
            System.Execute(u'C:\\Program Files\\SageTV\\SageTV\\SageTV.exe', u'', 2, False, 2, u'')
        </Action>
        <Action>
            SageTV.PowerOn()
        </Action>
        <Action>
            EventGhost.Wait(1.0)
        </Action>
        <Action>
            Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
        </Action>
        <Action>
            Window.BringToFront()
        </Action>
        <Action Enabled="False">
            EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
        </Action>
        <Action Enabled="False">
            EventGhost.PythonCommand('Window.BringToFront()')
        </Action>
        <Action Enabled="False">
            EventGhost.PythonCommand('Window.Maximize()')
        </Action>
        <Action Name="Send Full Screen keys">
            EventGhost.Comment()
        </Action>
        <Action Enabled="False">
            EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+F}', False)")
        </Action>
        <Action Enabled="False">
            SageTV.FullScreen()
        </Action>
        <Action Name="Power ON">
            EventGhost.Comment()
        </Action>
        <Action Enabled="False">
            EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+N}', False)")
        </Action>
        <Action Name="Mute Off">
            EventGhost.Comment()
        </Action>
        <Action Enabled="False">
            EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+P}', False)")
        </Action>
        <Action>
            SageTV.MuteOff()
        </Action>
        <Action Name="Enable exclusive: Switch to mode: SageTV">
            EventGhost.EnableExclusive(XmlIdLink(340))
        </Action>
    </Macro>
    <Macro Name="Switch to mode: Mouse Emulation" Enabled="False">
        <Event Name="Setup" />
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(252))
        </Action>
    </Macro>
    <Macro Name="Switch to mode: Hulu" Expanded="True">
        <Event Name="Hulu" />
        <Event Name="USB_UIRT.431D550144F5" />
        <Action>
            System.Execute(u'C:\\Users\\BILL\\AppData\\Local\\HuluDesktop\\HuluDesktop.exe', u'', 2, False, 2, u'')
        </Action>
        <Action Name="Enable exclusive: Switch to mode: Hulu">
            EventGhost.EnableExclusive(XmlIdLink(887))
        </Action>
        <Action>
            Window.SendKeys(u'{Alt+Space+X}', False)
        </Action>
    </Macro>
    <Macro Name="Switch to mode: Keyboard Emulation" Enabled="False">
        <Event Name="TXT" />
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(287))
        </Action>
    </Macro>
    <Folder Name="Context Folder" Expanded="True">
        <Folder Name="Foobar2000" id="63" Enabled="False">
            <Macro Name="Foobar2000: Play">
                <Event Name="USB_UIRT.2102400405C4" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', u'Led Zeppelin - [? #00] All Of My Love', u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    Foobar2000.Play()
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Pause">
                <Event Name="USB_UIRT.2308105501F1" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', None, u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Foobar2000.Pause()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Stop">
                <Event Name="USB_UIRT.2102004405C4" />
                <Event Name="USB_UIRT.2308005101F1" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', None, u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Foobar2000.Stop()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Previous Track">
                <Event Name="USB_UIRT.631E440104F5" />
                <Event Name="USB_UIRT.434A104050F0" />
                <Event Name="USB_UIRT.4318404455F1" />
                <Event Name="USB_UIRT.4318455145F1" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', None, u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    Foobar2000.PreviousTrack()
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Next Track">
                <Event Name="USB_UIRT.631E501504F5" />
                <Event Name="USB_UIRT.434A154550F0" />
                <Event Name="USB_UIRT.4318045005F1" />
                <Event Name="USB_UIRT.4318544045F1" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', None, u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    Foobar2000.NextTrack()
                </Action>
            </Macro>
            <Macro Name="Page Up">
                <Event Name="Page Up" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{PageUp}', False)")
                </Action>
                <Action>
                    Window.SendKeys(u'{PgUp}', False)
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Page Down">
                <Event Name="Page Down" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', u'foobar2000', u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{PageDown}', False)")
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Random Track">
                <Event Name="USB_UIRT.6319155544F5" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', u'foobar2000', u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'foobar2000.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    Foobar2000.Random()
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Seek ahead by 10 seconds">
                <Action>
                    Window.FindWindow(u'foobar2000.exe', u'foobar2000', u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Foobar2000.SeekAhead10s()
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Seek back by 10 seconds">
                <Action>
                    Window.FindWindow(u'foobar2000.exe', u'foobar2000', u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Foobar2000.SeekBack10s()
                </Action>
            </Macro>
            <Macro Name="Foobar2000: Exit">
                <Event Name="USB_UIRT.434A014445F0" />
                <Event Name="USB_UIRT.6319515104F5" Enabled="False" />
                <Action>
                    Window.FindWindow(u'foobar2000.exe', None, u'{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Name="The above IR command is the startup IR command for SageTV, so we need to shut this program down">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Foobar2000.Exit()
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(63))
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Zoom Player" id="147" Enabled="False">
            <Macro Name="Context Navigator">
                <Event Name="X10.Rename" />
                <Event Name="Menu" />
                <Action>
                    ZoomPlayer.fnContextNav()
                </Action>
            </Macro>
            <Macro Name="Cursor Up">
                <Event Name="Up" />
                <Action>
                    ZoomPlayer.Up()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Cursor Down">
                <Event Name="Down" />
                <Action>
                    ZoomPlayer.Down()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Cursor Left">
                <Event Name="Left" />
                <Action>
                    ZoomPlayer.Left()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Cursor Right">
                <Event Name="Right" />
                <Action>
                    ZoomPlayer.Right()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Ok">
                <Event Name="Ok" />
                <Action>
                    ZoomPlayer.Enter()
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="Play" />
                <Action>
                    ZoomPlayer.fnPlay()
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="Pause" />
                <Action>
                    ZoomPlayer.fnPause()
                </Action>
            </Macro>
            <Macro Name="Stop">
                <Event Name="Stop" />
                <Action>
                    ZoomPlayer.fnStop()
                </Action>
            </Macro>
            <Macro Name="Fast Forward">
                <Event Name="Forward" />
                <Action>
                    ZoomPlayer.fnFastForward()
                </Action>
            </Macro>
            <Macro Name="Fast Rewind">
                <Event Name="Rewind" />
                <Action>
                    ZoomPlayer.fnRewind()
                </Action>
            </Macro>
            <Macro Name="Num1">
                <Event Name="Num1" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'1')
                </Action>
            </Macro>
            <Macro Name="Num2">
                <Event Name="Num2" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'2')
                </Action>
            </Macro>
            <Macro Name="Num3">
                <Event Name="Num3" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'3')
                </Action>
            </Macro>
            <Macro Name="Num4">
                <Event Name="Num4" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'4')
                </Action>
            </Macro>
            <Macro Name="Num5">
                <Event Name="Num5" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'5')
                </Action>
            </Macro>
            <Macro Name="Num6">
                <Event Name="Num6" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'6')
                </Action>
            </Macro>
            <Macro Name="Num7">
                <Event Name="Num7" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'7')
                </Action>
            </Macro>
            <Macro Name="Num8">
                <Event Name="Num8" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'8')
                </Action>
            </Macro>
            <Macro Name="Num9">
                <Event Name="Num9" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'9')
                </Action>
            </Macro>
            <Macro Name="Num0">
                <Event Name="Num0" />
                <Action>
                    ZoomPlayer.exDVDNumPad(u'0')
                </Action>
            </Macro>
            <Macro Name="Next Track">
                <Event Name="NextTrack" />
                <Action>
                    ZoomPlayer.fnNextTrack()
                </Action>
            </Macro>
            <Macro Name="Previous Track">
                <Event Name="PreviousTrack" />
                <Action>
                    ZoomPlayer.fnPrevTrack()
                </Action>
            </Macro>
            <Macro Name="DVD Menu">
                <Event Name="DVDMenu" />
                <Action Name="because not every DVD has a title menu">
                    EventGhost.Comment()
                </Action>
                <Action Name="and we want to do it with just one key">
                    EventGhost.Comment()
                </Action>
                <Action Name="we simply use both actions. One of it will ">
                    EventGhost.Comment()
                </Action>
                <Action Name="succeed everytime.">
                    EventGhost.Comment()
                </Action>
                <Action>
                    ZoomPlayer.fnDVDRootMenu()
                </Action>
                <Action>
                    ZoomPlayer.fnDVDTitleMenu()
                </Action>
            </Macro>
            <Macro Name="DVD Audio">
                <Event Name="DVDAudio" />
                <Action>
                    ZoomPlayer.fnDVDAudioMenu()
                </Action>
            </Macro>
            <Macro Name="Zoom In">
                <Event Name="ChannelUp" />
                <Action>
                    ZoomPlayer.fnZoomIn()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Zoom Out">
                <Event Name="ChannelDown" />
                <Action>
                    ZoomPlayer.fnZoomOut()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Toggle Controlbar">
                <Event Name="EditImage" />
                <Action>
                    ZoomPlayer.fnBar()
                </Action>
            </Macro>
            <Macro Name="Toggle Fullscreen">
                <Event Name="Fullscreen" />
                <Action>
                    ZoomPlayer.fnFullScreen()
                </Action>
            </Macro>
            <Macro Name="Exit Zoom Player">
                <Event Name="Power" />
                <Action>
                    ZoomPlayer.fnExit()
                </Action>
            </Macro>
            <Macro Name="Forced Restart" id="250">
                <Action Name="Taskkill ZoomPlayer">
                    System.Execute(u'C:\\WINDOWS\\system32\\taskkill.exe', u'/F /IM zplayer.exe /T', 1, True, 2)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Mouse Emulation" id="252" Enabled="False">
            <Macro Name="Mouse Move Up">
                <Event Name="Up" />
                <Event Name="Num2" />
                <Action>
                    Mouse.GoDirection(0)
                </Action>
            </Macro>
            <Macro Name="Mouse Move RightUp">
                <Event Name="Num3" />
                <Action>
                    Mouse.GoDirection(45)
                </Action>
            </Macro>
            <Macro Name="Mouse Move Right">
                <Event Name="Right" />
                <Event Name="Num6" />
                <Action>
                    Mouse.GoDirection(90)
                </Action>
            </Macro>
            <Macro Name="Mouse Move RightDown">
                <Event Name="Num9" />
                <Action>
                    Mouse.GoDirection(u'135')
                </Action>
            </Macro>
            <Macro Name="Mouse Move Down">
                <Event Name="Down" />
                <Event Name="Num8" />
                <Action>
                    Mouse.GoDirection(u'180')
                </Action>
            </Macro>
            <Macro Name="Mouse Move LeftDown">
                <Event Name="Num7" />
                <Action>
                    Mouse.GoDirection(225)
                </Action>
            </Macro>
            <Macro Name="Mouse Move Left">
                <Event Name="Left" />
                <Event Name="Num4" />
                <Action>
                    Mouse.GoDirection(270)
                </Action>
            </Macro>
            <Macro Name="Mouse Move LeftUp">
                <Event Name="Num1" />
                <Action>
                    Mouse.GoDirection(315)
                </Action>
            </Macro>
            <Macro Name="Left Mouse Button">
                <Event Name="X10.Rename" />
                <Action>
                    Mouse.LeftButton()
                </Action>
            </Macro>
            <Macro Name="Right Mouse Button">
                <Event Name="X10.Snapshot" />
                <Action>
                    Mouse.RightButton()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Keyboard Emulation" id="287" Enabled="False">
            <Macro Name="Up">
                <Event Name="Up" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Up}')")
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Down">
                <Event Name="Down" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Down}')")
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="Right" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Right}')")
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="Left" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Left}')")
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Select">
                <Event Name="Select" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Enter}')")
                </Action>
            </Macro>
            <Macro Name="Back">
                <Event Name="Back" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Alt+Left}', False)")
                </Action>
            </Macro>
            <Macro Name="Delete -&gt; Escape Key">
                <Event Name="Delete" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Esc}')")
                </Action>
            </Macro>
            <Macro Name="Power -&gt; Alt+F4">
                <Event Name="Power" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Alt+F4}')")
                </Action>
            </Macro>
            <Macro Name="Forward">
                <Event Name="Forward" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Alt+Right}', False)")
                </Action>
            </Macro>
            <Macro Name="Guide">
                <Event Name="Guide" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+X}', True)")
                </Action>
            </Macro>
            <Macro Name="Home">
                <Event Name="Home" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Home}', False)")
                </Action>
            </Macro>
            <Macro Name="Rewind -&gt; Shift+Tabulator">
                <Event Name="Rewind" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Shift+Tab}')")
                </Action>
            </Macro>
            <Macro Name="ChannelUp -&gt; Plus">
                <Event Name="ChannelUp" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'+')")
                </Action>
            </Macro>
            <Macro Name="ChannelDown -&gt; Minus">
                <Event Name="ChannelDown" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'-')")
                </Action>
            </Macro>
            <Macro Name="Rename -&gt; Start Menu">
                <Event Name="Rename" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Win}')")
                </Action>
            </Macro>
            <Macro Name="Play -&gt; Space">
                <Event Name="Play" />
                <Action>
                    EventGhost.PythonCommand("Window.SendKeys(u'{Space}')")
                </Action>
            </Macro>
        </Folder>
        <Folder Name="SageTV" id="340" Enabled="False">
            <Macro Name="Up">
                <Event Name="Up" />
                <Event Name="USB_UIRT.6319444515F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Up()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Up}')")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.20000000000000001, 2.2000000000000002, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Down">
                <Event Name="Down" />
                <Event Name="USB_UIRT.6319555415F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 5, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Down()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Down}')")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.20000000000000001, 0.10000000000000001, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="Left" />
                <Event Name="USB_UIRT.6319414015F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Left()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Left}')")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="Right" />
                <Event Name="USB_UIRT.6319415005F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Right()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Right}')")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Select">
                <Event Name="Select" />
                <Event Name="USB_UIRT.6319145555F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Select()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Enter}')")
                </Action>
            </Macro>
            <Macro Name="Forward">
                <Event Name="Forward" />
                <Event Name="USB_UIRT.631E051155F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Forward()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Alt+Right}', False)")
                </Action>
            </Macro>
            <Macro Name="Back">
                <Event Name="Back" />
                <Event Name="USB_UIRT.631E110555F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Back()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Alt+Left}', False)")
                </Action>
            </Macro>
            <Macro Name="Guide">
                <Event Name="Guide" />
                <Event Name="USB_UIRT.6319445505F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Guide()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+X}', True)")
                </Action>
            </Macro>
            <Macro Name="Home">
                <Event Name="Home" />
                <Event Name="USB_UIRT.6319115055F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Home()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Home}', False)")
                </Action>
            </Macro>
            <Macro Name="Info">
                <Event Name="Info" />
                <Event Name="USB_UIRT.6319005541F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Info()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+I}', False)")
                </Action>
            </Macro>
            <Macro Name="Page Up">
                <Event Name="Page Up" />
                <Event Name="USB_UIRT.631E440104F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.PageUp()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{F5}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Page Down">
                <Event Name="Page Down" />
                <Event Name="USB_UIRT.631E501504F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.PageDown()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{F6}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Skip Forward 10 Seconds">
                <Event Name="Skip Forward 10 Seconds" />
                <Event Name="USB_UIRT.6319454504F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.SkipFwd2()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+F8}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Skip Backward 10 Seconds">
                <Event Name="Skip Backward 10 Seconds" />
                <Event Name="USB_UIRT.6319545404F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.SkipBkwd2()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+F7}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Fast Forward">
                <Event Name="Fast Foward" />
                <Event Name="USB_UIRT.631B441515F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.SkipFwdPageRight()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+F}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Fast Rewind">
                <Event Name="Fast Rewind" />
                <Event Name="USB_UIRT.631B500115F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.SkipBkwdPageLeft()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+A}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="Play" />
                <Event Name="USB_UIRT.631B440505F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Play()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+S}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="Pause" />
                <Event Name="USB_UIRT.631B550415F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Pause()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+S}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Stop">
                <Event Name="Stop" />
                <Event Name="USB_UIRT.631B110055F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Stop()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+G}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Record">
                <Event Name="Record" />
                <Event Name="USB_UIRT.631B410005F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Record()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Y}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Volume Up" Enabled="False">
                <Event Name="Volume Up" />
                <Event Name="USB_UIRT.2308045405F1" />
                <Event Name="USB_UIRT.2102105015C4" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.VolumeUp()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Right}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Volume Down" Enabled="False">
                <Event Name="Volume Down" />
                <Event Name="USB_UIRT.2308044005F1" />
                <Event Name="USB_UIRT.2102100015C4" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.VolumeDown()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Left}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="SageTV: Channel Up/Page Up">
                <Event Name="USB_UIRT.631E440104F5" />
                <Action>
                    SageTV.ChannelUpPageUp()
                </Action>
            </Macro>
            <Macro Name="SageTV: Channel Down/Page Down">
                <Event Name="USB_UIRT.631E501504F5" />
                <Action>
                    SageTV.ChannelDownPageDown()
                </Action>
            </Macro>
            <Macro Name="Live TV">
                <Event Name="Live TV" />
                <Event Name="USB_UIRT.630D005151F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.LiveTv()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+L}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Full Screen">
                <Event Name="Full Screen" />
                <Event Name="USB_UIRT.631E151054F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.FullScreen()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+F}', False)")
                </Action>
                <Action Enabled="False">
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Recordings">
                <Event Name="Recordings" />
                <Event Name="USB_UIRT.6319414114F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.SageTvRecordings()
                </Action>
            </Macro>
            <Macro Name="Mute" Enabled="False">
                <Event Name="Mute" />
                <Event Name="USB_UIRT.2308045105F1" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+M}', False)")
                </Action>
                <Action>
                    SageTV.Mute()
                </Action>
            </Macro>
            <Macro Name="Number 0">
                <Event Name="Number 0" />
                <Event Name="USB_UIRT.631B411411F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num0()
                </Action>
            </Macro>
            <Macro Name="Number 1">
                <Event Name="Number 1" />
                <Event Name="USB_UIRT.631B050041F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num1()
                </Action>
            </Macro>
            <Macro Name="Number 2">
                <Event Name="Number 2" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num2()
                </Action>
            </Macro>
            <Macro Name="Number 3">
                <Event Name="Number 3" />
                <Event Name="USB_UIRT.631B000541F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num3()
                </Action>
            </Macro>
            <Macro Name="Number 4">
                <Event Name="Number 4" />
                <Event Name="USB_UIRT.631B141141F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num4()
                </Action>
            </Macro>
            <Macro Name="Number 5">
                <Event Name="Number 5" />
                <Event Name="USB_UIRT.631B440101F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num5()
                </Action>
            </Macro>
            <Macro Name="Number 6">
                <Event Name="Number 6" />
                <Event Name="USB_UIRT.631B501501F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num6()
                </Action>
            </Macro>
            <Macro Name="Number 7">
                <Event Name="Number 7" />
                <Event Name="USB_UIRT.631B410401F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num7()
                </Action>
            </Macro>
            <Macro Name="Number 8">
                <Event Name="Number 8" />
                <Event Name="USB_UIRT.631B551001F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num8()
                </Action>
            </Macro>
            <Macro Name="Number 9">
                <Event Name="Number 9" />
                <Event Name="USB_UIRT.631B550011F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Num9()
                </Action>
            </Macro>
            <Macro Name="Enter">
                <Event Name="Enter" />
                <Event Name="USB_UIRT.631B040454F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Select()
                </Action>
            </Macro>
            <Macro Name="Clear">
                <Event Name="Clear" />
                <Event Name="USB_UIRT.6319115154F5" />
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action>
                    SageTV.Delete()
                </Action>
            </Macro>
            <Macro Name="DVD">
                <Event Name="USB_UIRT.631B010154F5" />
                <Action>
                    SageTV.Dvd()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Menu">
                <Event Name="USB_UIRT.4D11101135F0" />
                <Action>
                    SageTV.DvdMenu()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Next Chapter">
                <Event Name="USB_UIRT.4D15001525F0" />
                <Action>
                    SageTV.DvdNextChapter()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Prev Chapter">
                <Event Name="USB_UIRT.4D15411564F0" />
                <Action>
                    SageTV.DvdPrevChapter()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Subtitle Change">
                <Event Name="USB_UIRT.4D11145139F0" />
                <Action>
                    SageTV.DvdSubtitleChange()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Subtitle Toggle">
                <Event Name="USB_UIRT.4D10045029F0" />
                <Action>
                    SageTV.DvdSubtitleToggle()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Audio Change">
                <Event Name="USB_UIRT.4D15545579F0" />
                <Action>
                    SageTV.DvdAudioChange()
                </Action>
            </Macro>
            <Macro Name="SageTV: DVD Angle Change">
                <Event Name="USB_UIRT.4D14101435F0" />
                <Action>
                    SageTV.DvdAngleChange()
                </Action>
            </Macro>
            <Macro Name="Power Off">
                <Event Name="Power Off" />
                <Event Name="USB_UIRT.694444D557A3" />
                <Event Name="USB_UIRT.434A044145F0" Enabled="False" />
                <Event Name="USB_UIRT.6319514015F5" />
                <Event Name="Task.Activated.foobar2000" Enabled="False" />
                <Action Name="The above IR command is the startup IR command for Foobar2000, so we need to shut this program down">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Window.FindWindow(u'SageTV.exe', u'SageTV', u'SunAwtFrame', u'', u'SunAwtCanvas', 7, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.FindWindow(u'SageTV.exe', None, None, None, None, None, False, 0.0, 0)")
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand('Window.BringToFront()')
                </Action>
                <Action Name="Mute On">
                    EventGhost.Comment()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+K}', False)")
                </Action>
                <Action>
                    SageTV.MuteOn()
                </Action>
                <Action Name="Power Off">
                    EventGhost.Comment()
                </Action>
                <Action Enabled="False">
                    EventGhost.PythonCommand("Window.SendKeys(u'{Ctrl+Shift+B}', False)")
                </Action>
                <Action>
                    SageTV.PowerOff()
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(340))
                </Action>
            </Macro>
        </Folder>
        <Folder Name="CyberLink PowerDVD" id="737" Enabled="False">
            <Macro Name="Up">
                <Event Name="Up" />
                <Event Name="USB_UIRT.8089F5203ECA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Up}', False)
                </Action>
                <Action>
                    PowerDvd.NavigationUp()
                </Action>
            </Macro>
            <Macro Name="Down">
                <Event Name="Down" />
                <Event Name="USB_UIRT.8009F5003EEA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Down}', False)
                </Action>
                <Action>
                    PowerDvd.NavigationDown()
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="Left" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Left}', False)
                </Action>
                <Action>
                    PowerDvd.NavigationLeft()
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="Right" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Right}', False)
                </Action>
                <Action>
                    PowerDvd.NavigationRight()
                </Action>
            </Macro>
            <Macro Name="Select">
                <Event Name="Select" />
                <Event Name="USB_UIRT.8029F5883EEA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Enter}', False)
                </Action>
                <Action>
                    PowerDvd.NavigationEnter()
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="USB_UIRT.800B550ABEEA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Enter}', False)
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Return}', False)
                </Action>
                <Action>
                    PowerDvd.Play()
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="USB_UIRT.808B552ABECA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'{Space}', False)
                </Action>
                <Action>
                    PowerDvd.Pause()
                </Action>
            </Macro>
            <Macro Name="Stop">
                <Event Name="USB_UIRT.2988082A28E0" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'S', False)
                </Action>
                <Action>
                    PowerDvd.Stop()
                </Action>
            </Macro>
            <Macro Name="Menu">
                <Event Name="USB_UIRT.802377223EE2" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'L', False)
                </Action>
                <Action>
                    PowerDvd.Menu()
                </Action>
            </Macro>
            <Macro Name="Previous chapter">
                <Event Name="USB_UIRT.8083FF8A1EE0" />
                <Event Name="USB_UIRT.7D82488A1EE0" Enabled="False" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'P', False)
                </Action>
                <Action>
                    PowerDvd.PreviousChapter()
                </Action>
            </Macro>
            <Macro Name="Next chapter">
                <Event Name="USB_UIRT.8083FD0A1ECA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'N', False)
                </Action>
                <Action>
                    PowerDvd.NextChapter()
                </Action>
            </Macro>
            <Macro Name="Step backward">
                <Event Name="USB_UIRT.8083DD089ECA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(0.5)
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'E', False)
                </Action>
                <Action>
                    PowerDvd.StepBackward()
                </Action>
            </Macro>
            <Macro Name="Step Forward">
                <Event Name="USB_UIRT.808BDFAA9EE0" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'T', False)
                </Action>
                <Action>
                    PowerDvd.StepForward()
                </Action>
            </Macro>
            <Macro Name="Skip Forward">
                <Event Name="USB_UIRT.80A377023EE0" />
                <Action>
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD', u'ATL:0050C458', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    EventGhost.Wait(1.75)
                </Action>
                <Action>
                    Window.SendKeys(u'{PageDown}', False)
                </Action>
            </Macro>
            <Macro Name="Skip backward">
                <Event Name="USB_UIRT.80A375823ECA" />
                <Action>
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD', u'ATL:0050C458', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Window.SendKeys(u'{PageUp}', False)
                </Action>
            </Macro>
            <Macro Name="Reverse Incremental">
                <Action Enabled="False">
                    Window.SendKeys(u'B', False)
                </Action>
                <Action>
                    PowerDvd.StepBackward()
                </Action>
            </Macro>
            <Macro Name="Forward Incremental">
                <Action Enabled="False">
                    Window.SendKeys(u'F', False)
                </Action>
                <Action>
                    PowerDvd.StepForward()
                </Action>
            </Macro>
            <Macro Name="Fast Forward">
                <Event Name="USB_UIRT.802B5702BEE2" />
                <Action>
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD', u'ATL:0050C458', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'F', False)
                </Action>
                <Action>
                    PowerDvd.FastForward()
                </Action>
            </Macro>
            <Macro Name="Rewind">
                <Event Name="USB_UIRT.800B578ABEE2" />
                <Action>
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD', u'ATL:0050C458', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'B', False)
                </Action>
                <Action>
                    PowerDvd.Rewind()
                </Action>
            </Macro>
            <Macro Name="Toggle fullscreen">
                <Event Name="USB_UIRT.2902082AA8CA" />
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'Z', False)
                </Action>
                <Action>
                    PowerDvd.ToggleFullscreen()
                </Action>
            </Macro>
            <Macro Name="Toggle mute">
                <Action>
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005DF828', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'Q', False)
                </Action>
                <Action>
                    PowerDvd.ToggleMute()
                </Action>
            </Macro>
            <Macro Name="Volume up" />
            <Macro Name="Volume down" />
            <Macro Name="Next audio stream">
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005E6938', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'H', False)
                </Action>
                <Action>
                    PowerDvd.NextAudioStream()
                </Action>
            </Macro>
            <Macro Name="Next subtitle">
                <Action Enabled="False">
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD 8.0', u'ATL:005E6938', None, None, None, False, 0.0, 0)
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'U', False)
                </Action>
                <Action>
                    PowerDvd.NextSubtitle()
                </Action>
            </Macro>
            <Macro Name="Next angel">
                <Action>
                    PowerDvd.NextAngel()
                </Action>
            </Macro>
            <Macro Name="Say-It-Again">
                <Action>
                    PowerDvd.SayItAgain()
                </Action>
            </Macro>
            <Macro Name="See-It-All">
                <Action>
                    PowerDvd.SeeItAll()
                </Action>
            </Macro>
            <Macro Name="Capture frame">
                <Action>
                    PowerDvd.CaptureFrame()
                </Action>
            </Macro>
            <Macro Name="CyberLink PowerDVD: Exit">
                <Event Name="USB_UIRT.808BDD2A9ECA" />
                <Event Name="Exit" />
                <Action>
                    Window.FindWindow(u'PowerDVD8.exe', u'CyberLink PowerDVD', u'ATL:0050C458', None, None, None, True, 0.0, 0)
                </Action>
                <Action>
                    Window.SendKeys(u'{Ctrl+X}', False)
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(737))
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Hulu" id="887" Expanded="True">
            <Macro Name="Up" Expanded="True">
                <Event Name="Up" />
                <Event Name="USB_UIRT.431F515554F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Up}', False)
                </Action>
            </Macro>
            <Macro Name="Down" Expanded="True">
                <Event Name="Down" />
                <Event Name="USB_UIRT.431F514544F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Down}', False)
                </Action>
            </Macro>
            <Macro Name="Left" Expanded="True">
                <Event Name="Left" />
                <Event Name="USB_UIRT.431F515150F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Left}', False)
                </Action>
            </Macro>
            <Macro Name="Right" Expanded="True">
                <Event Name="Right" />
                <Event Name="USB_UIRT.431F404050F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Right}', False)
                </Action>
            </Macro>
            <Macro Name="Select" Expanded="True">
                <Event Name="Select" />
                <Event Name="USB_UIRT.431F454550F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Enter}', False)
                </Action>
            </Macro>
            <Macro Name="Play" Expanded="True">
                <Event Name="Play" />
                <Event Name="USB_UIRT.431D051104F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Enter}', False)
                </Action>
            </Macro>
            <Macro Name="Pause" Expanded="True">
                <Event Name="Pause" />
                <Event Name="USB_UIRT.431D410554F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Space}', False)
                </Action>
            </Macro>
            <Macro Name="Stop" Expanded="True">
                <Event Name="Stop" />
                <Event Name="USB_UIRT.431D551154F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Space},{Escape}', False)
                </Action>
            </Macro>
            <Macro Name="Step backward" Expanded="True">
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(0.5)
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'E', False)
                </Action>
            </Macro>
            <Macro Name="Step Forward" Expanded="True">
                <Action Enabled="False">
                    Window.BringToFront()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'T', False)
                </Action>
            </Macro>
            <Macro Name="Skip Forward" Expanded="True">
                <Event Name="USB_UIRT.431D500444F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Right}', False)
                </Action>
            </Macro>
            <Macro Name="Skip backward" Expanded="True">
                <Event Name="USB_UIRT.431D441044F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Left}', False)
                </Action>
            </Macro>
            <Macro Name="Fast Forward" Expanded="True">
                <Event Name="USB_UIRT.431D001404F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'F', False)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Rewind" Expanded="True">
                <Event Name="USB_UIRT.431D140004F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Left}', False)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Screen Maximize Sscreen" Expanded="True">
                <Event Name="USB_UIRT.431F504454F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Alt+Space+X}', False)
                </Action>
            </Macro>
            <Macro Name="Screen Minimize Screen" Expanded="True">
                <Event Name="USB_UIRT.431F544541F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Alt+Space+N}', False)
                </Action>
            </Macro>
            <Macro Name="Menu" Expanded="True">
                <Event Name="Menu" />
                <Event Name="USB_UIRT.431F514140F5" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'{Escape}', False)
                </Action>
            </Macro>
            <Macro Name="Volume up" Enabled="False">
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'F', False)
                </Action>
            </Macro>
            <Macro Name="Volume down" Enabled="False">
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
                <Action>
                    Window.SendKeys(u'F', False)
                </Action>
            </Macro>
            <Macro Name="Hulu: Exit" Expanded="True">
                <Event Name="Exit" />
                <Event Name="USB_UIRT.431F515144F1" />
                <Action>
                    Window.FindWindow(u'HuluDesktop.exe', u'Hulu Desktop', u'HuluDesktop_Host', u'', u'MacromediaFlashPlayerActiveX', 1, False, 0.0, 0)
                </Action>
                <Action>
                    Window.SendKeys(u'{Alt+F4}', False)
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(887))
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Macro Name="Mute Sound Card" Enabled="False">
        <Event Name="Mute" />
        <Action>
            System.ToggleMute()
        </Action>
    </Macro>
    <Macro Name="Decrease Volume" Enabled="False">
        <Event Name="VolumeDown" />
        <Action>
            System.ChangeMasterVolumeBy(-2.0)
        </Action>
        <Action>
            EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
        </Action>
    </Macro>
    <Macro Name="Increase Volume" Enabled="False">
        <Event Name="VolumeUp" />
        <Action>
            System.ChangeMasterVolumeBy(2.0)
        </Action>
        <Action>
            EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
        </Action>
    </Macro>
    <Folder Name="Other Examples" Enabled="False">
        <Folder Name="State Folder Example">
            <Folder Name="Folder1" id="983">
                <Macro Name="Enable other Folder">
                    <Event Name="Blue" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(988))
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Folder2" id="988" Enabled="False">
                <Macro Name="Enable other Folder">
                    <Event Name="Blue" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(993))
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Folder3" id="993" Enabled="False">
                <Macro Name="Enable other Folder">
                    <Event Name="Blue" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(983))
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="State Macro Example">
            <Macro Name="State1" id="999">
                <Event Name="Green" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(999))
                </Action>
                <Action>
                    EventGhost.EnableItem(XmlIdLink(1005))
                </Action>
                <Action Enabled="False">
                    System.MonitorPowerOff()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="State2" id="1005" Enabled="False">
                <Event Name="Green" />
                <Action>
                    EventGhost.EnableItem(XmlIdLink(999))
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(1005))
                </Action>
                <Action>
                    System.MonitorPowerOn()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="State Macro Example 2">
            <Macro Name="Macro1" id="1012">
                <Event Name="Yellow" />
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(1016))
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Macro2" id="1016" Enabled="False">
                <Event Name="Yellow" />
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(1020))
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Macro3" id="1020" Enabled="False">
                <Event Name="Yellow" />
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(1012))
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
        </Folder>
    </Folder>
</EventGhost>
