<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Name="Konfigurations-Baum" Version="1449" Guid="{F0348372-1945-4DCB-AC53-0E19386607EB}" Time="1222525790.73">
    <Autostart Name="Autostart">
        <Plugin File="Timer" Identifier="Timer">
            gAIpLg==
        </Plugin>
        <Plugin File="X10" Identifier="X10">
            gAJLAV1xAChLAUsCSwNLBEsFSwZLB0sISwlLCksLSwxLDUsOSw9LEGVYAwAAAFgxMHEBh3ECLg==
        </Plugin>
        <Plugin Enabled="False" File="ZoomPlayer" Identifier="ZoomPlayer">
            gAIoWAkAAABsb2NhbGhvc3RxAE2hEoiJdHEBLg==
        </Plugin>
        <Plugin Enabled="False" File="Winamp" Identifier="Winamp">
            gAIpLg==
        </Plugin>
        <Plugin Enabled="False" File="DesktopRemote" Identifier="DesktopRemote">
            gAIpLg==
        </Plugin>
        <Plugin Enabled="False" File="Speech" Identifier="Speech">
            gAIpLg==
        </Plugin>
        <Plugin Enabled="False" File="Task" Identifier="Task">
            gAIpLg==
        </Plugin>
        <Plugin File="DVBViewer" Identifier="DVBViewer">
            gAKJhXEALg==
        </Plugin>
        <Action>
            EventGhost.NewJumpIf(XmlIdLink(16), 2, True)
        </Action>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(122))
        </Action>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(33))
        </Action>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(47))
        </Action>
    </Autostart>
    <Folder Name="Config">
        <Macro Name="myConfigDefault" id="16">
            <Action>
                EventGhost.PythonCommand(u"eg.globals.myConfigPath = u'C:\\\\Einstellungen\\\\Eventghost\\\\'")
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigAborted= u"abgebrochen"')
            </Action>
            <Action Enabled="False">
                EventGhost.PythonCommand(u'eg.globals.myConfigHoldButtonFor= u"Halten f\xfcr"')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigOSDBigSize = 72')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigOSDTinySize = 42')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigOSDFont = "Arial Black"')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigOSDCountSymbol = "*"')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigOSDSkin = True')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigModeTVText = u"TV"')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigModeText = { u"X10.TV": ("TV",501),      u"X10.TVPreview": ("Switch",0),      u"X10.Music": ("Jukebox",697),         u"X10.DVD": ("DVD", 0),     u"X10.VCR": ("Videorecorder",0)    , u"X10.ChannelList": ("Internet","firefox.exe")     }')
            </Action>
            <Action Enabled="False">
                EventGhost.PythonCommand(u'ttk_key = ttk[eg.event.string][taps-1]')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myConfigTTKempty = "&lt;-"')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentAction = ""')
            </Action>
        </Macro>
    </Folder>
    <Folder Name="SwitchModes">
        <Folder Name="TempModes">
            <Folder Name="Keyboard">
                <Macro Name="Start Keyboard Mode" id="33">
                    <Event Name="X10.DVDMenu" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(40))
                    </Action>
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(339))
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(340), 2, False)
                    </Action>
                    <Action>
                        EventGhost.ShowOSD(u'Keyboard', u'0;-60;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
                <Macro Name="End Keyboard Mode" id="40" Enabled="False">
                    <Event Name="X10.DVDMenu" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(33))
                    </Action>
                    <Action Enabled="False">
                        EventGhost.DisableItem(XmlIdLink(339))
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(77), 2, False)
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Mouse">
                <Macro Name="Start Mouse Mode" id="47" Enabled="False">
                    <Event Name="X10.DVDAudio" id="48" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(53))
                    </Action>
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(293))
                    </Action>
                    <Action>
                        EventGhost.ShowOSD(u'Mouse', u'0;-60;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
                <Macro Name="End Mouse Mode" id="53">
                    <Event Name="X10.DVDAudio" />
                    <Action>
                        EventGhost.Wait(1.0)
                    </Action>
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(47))
                    </Action>
                    <Action>
                        EventGhost.Wait(1.0)
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(77), 2, False)
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Macro Name="ConfirmMode">
            <Event Name="X10.TV" />
            <Event Name="X10.VCR" Enabled="False" />
            <Event Name="X10.DVD" Enabled="False" />
            <Event Name="X10.Music" />
            <Event Name="X10.TVPreview" Enabled="False" />
            <Event Name="X10.ChannelList" />
            <Action Enabled="False">
                EventGhost.ShowOSD(u'{ eg.event.string } {eg.globals.myConfigModeText[ eg.event.string][0] } : {eg.globals.myConfigModeText[ eg.event.string][1] }', u'0;-60;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'helpState=0')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myNextAction = eg.globals.myConfigModeText[eg.event.string][0]')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myNextActionWindow = str(eg.globals.myConfigModeText[eg.event.string][1])')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.plugins.Window.FindWindow(eg.globals.myNextActionWindow, None, None, None, None, None, False, 0.0, 2)')
            </Action>
            <Action>
                Window.BringToFront()
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(782), 1, True)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myNextActionConfirmed')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(89), 1, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentAction = eg.globals.myNextAction')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentWindow = eg.globals.myNextActionWindow')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(77), 2, False)
            </Action>
        </Macro>
        <Macro Name="JumpToCurrentAction" id="77">
            <Action>
                EventGhost.ShowOSD(u'{eg.globals.myCurrentAction}', u'0;-60;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentAction == "Jukebox"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(92), 0, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentAction == "TV"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(96), 0, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentAction == "Internet"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(105), 0, False)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myCurrentAction == "Switch"')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(100), 0, False)
            </Action>
            <Action>
                EventGhost.FlushEvents()
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Macro Name="DoNothing" id="89">
            <Action>
                EventGhost.StopProcessing()
            </Action>
            <Action>
                EventGhost.FlushEvents()
            </Action>
        </Macro>
        <Macro Name="StartMusicMode" id="92">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(639))
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(640), 2, False)
            </Action>
            <Action>
                EventGhost.Wait(3.0)
            </Action>
        </Macro>
        <Macro Name="StartTVMode" id="96">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(467))
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(468), 2, False)
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Macro Name="StartSwitch" id="100">
            <Event Name="X10.TVPreview" />
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(228))
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(229), 2, False)
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Macro Name="StartInternet" id="105">
            <Action>
                EventGhost.ShowOSD(u'{eg.globals.myNextActionWindow}', u'0;-60;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(707))
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(708), 2, False)
            </Action>
            <Action>
                EventGhost.Wait(3.0)
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
    </Folder>
    <Macro Name="Switch to mode: Zoom Player" Enabled="False">
        <Event Name="DVD" Enabled="False" />
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(123))
        </Action>
        <Action>
            EventGhost.JumpIfLongPress(3.0, XmlIdLink(223))
        </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: Winamp" Enabled="False">
        <Event Name="Music" />
        <Action>
            System.Execute(u'{eg.PROGRAMFILES}\\Winamp\\winamp.exe', u'', 0, False, 2)
        </Action>
        <Action>
            EventGhost.EnableExclusive(XmlIdLink(246))
        </Action>
    </Macro>
    <Folder Name="Context Folder">
        <Folder Name="Nothing" id="122" />
        <Folder Name="Zoom Player" id="123" 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="Forced Restart" id="223">
                <Action Name="Taskkill ZoomPlayer">
                    System.Execute(u'C:\\WINDOWS\\system32\\taskkill.exe', u'/F /IM zplayer.exe /T', 1, True, 2)
                </Action>
            </Macro>
            <Macro Name="Exit Zoom Player">
                <Event Name="Power" />
                <Action>
                    ZoomPlayer.fnExit()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="AltTab" id="228" Enabled="False">
            <Macro Name="Push and hold ALT, send TAB" id="229">
                <Action>
                    EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(18,0,0,0)\nwin32api.keybd_event(9,0,0,0)\nwin32api.keybd_event(9,0,2,0)')
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="Send TAB">
                <Action>
                    EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(9,0,0,0)\nwin32api.keybd_event(9,0,2,0)')
                </Action>
            </Macro>
            <Macro Name="Release ALT">
                <Event Name="X10.Ok" />
                <Action>
                    EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(18,0,2,0)')
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="Weiter">
                <Event Name="X10.Right" />
                <Action>
                    Window.SendKeys(u'{Right}', False)
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="Zurück">
                <Event Name="X10.Left" />
                <Action>
                    Window.SendKeys(u'{Left}', False)
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Winamp" id="246" Enabled="False">
            <Macro Name="Play">
                <Event Name="Play" />
                <Event Name="Ok" />
                <Action>
                    Winamp.TogglePlay()
                </Action>
            </Macro>
            <Macro Name="Stop">
                <Event Name="Stop" />
                <Action>
                    Winamp.Stop()
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="Pause" />
                <Action>
                    Winamp.Pause()
                </Action>
            </Macro>
            <Macro Name="Cursor Up">
                <Event Name="Up" />
                <Action>
                    Winamp.PreviousTrack()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Cursor Down">
                <Event Name="Down" />
                <Action>
                    Winamp.NextTrack()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Cursor Left">
                <Event Name="Left" />
                <Action>
                    Winamp.FastRewind()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Cursor Right">
                <Event Name="Right" />
                <Action>
                    Winamp.FastForward()
                </Action>
                <Action>
                    EventGhost.AutoRepeat()
                </Action>
            </Macro>
            <Macro Name="Next Track">
                <Event Name="NextTrack" />
                <Action>
                    Winamp.NextTrack()
                </Action>
            </Macro>
            <Macro Name="Previous Track">
                <Event Name="PreviousTrack" />
                <Action>
                    Winamp.PreviousTrack()
                </Action>
            </Macro>
            <Macro Name="Visualization">
                <Event Name="Fullscreen" />
                <Action>
                    Winamp.ExVis()
                </Action>
            </Macro>
            <Macro Name="Exit">
                <Event Name="Power" />
                <Action>
                    Winamp.Exit()
                </Action>
            </Macro>
            <Macro Name="Volume Up">
                <Event Name="VolumeUp" />
                <Action>
                    Winamp.VolumeUp()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.33000000000000002, 0.050000000000000003, 0.050000000000000003, 3.0)
                </Action>
            </Macro>
            <Macro Name="Volume Down">
                <Event Name="VolumeDown" />
                <Action>
                    Winamp.VolumeDown()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.33000000000000002, 0.050000000000000003, 0.050000000000000003, 3.0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Mouse Emulation" id="293" Enabled="False">
            <Macro Name="Mouse Move Up">
                <Event Name="Up" />
                <Event Name="X10.Num2" />
                <Action>
                    Mouse.GoDirection(0)
                </Action>
            </Macro>
            <Macro Name="Mouse Move RightUp">
                <Event Name="X10.Num3" />
                <Action>
                    Mouse.GoDirection(45)
                </Action>
            </Macro>
            <Macro Name="Mouse Move Right">
                <Event Name="Right" />
                <Event Name="X10.Num6" />
                <Action>
                    Mouse.GoDirection(90)
                </Action>
            </Macro>
            <Macro Name="Mouse Move RightDown">
                <Event Name="X10.Num9" />
                <Action>
                    Mouse.GoDirection(u'135')
                </Action>
            </Macro>
            <Macro Name="Mouse Move Down">
                <Event Name="Down" />
                <Event Name="X10.Num8" />
                <Action>
                    Mouse.GoDirection(u'180')
                </Action>
            </Macro>
            <Macro Name="Mouse Move LeftDown">
                <Event Name="X10.Num7" />
                <Action>
                    Mouse.GoDirection(225)
                </Action>
            </Macro>
            <Macro Name="Mouse Move Left">
                <Event Name="Left" />
                <Event Name="X10.Num4" />
                <Action>
                    Mouse.GoDirection(270)
                </Action>
            </Macro>
            <Macro Name="Mouse Move LeftUp">
                <Event Name="X10.Num1" />
                <Action>
                    Mouse.GoDirection(315)
                </Action>
            </Macro>
            <Macro Name="Left Mouse Button" id="322">
                <Event Name="X10.Rename" />
                <Action>
                    EventGhost.JumpIfLongPress(1.0, XmlIdLink(322))
                </Action>
                <Action>
                    Mouse.LeftButton()
                </Action>
            </Macro>
            <Macro Name="Right Mouse Button">
                <Event Name="X10.Snapshot" />
                <Action>
                    Mouse.RightButton()
                </Action>
            </Macro>
            <Macro Name="Linke Maustaste Doppelklick ">
                <Action>
                    Mouse.LeftDoubleClick()
                </Action>
            </Macro>
            <Macro Name="Delete -&gt; Escape Key">
                <Event Name="Delete" />
                <Action>
                    Window.SendKeys(u'{Esc}')
                </Action>
            </Macro>
            <Macro Name="Deaktiviere Mouse">
                <Event Name="X10.DVDAudio" />
                <Action>
                    EventGhost.ShowOSD(u'{eg.globals.myCurrentAction}', u'0;-60;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
                </Action>
                <Action>
                    EventGhost.EnableItem(XmlIdLink(48))
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(293))
                </Action>
            </Macro>
        </Folder>
        <Folder Name="TTK" id="339" Enabled="False">
            <Macro Name="Prepare TTK" id="340">
                <Event Name="Main.OnInit" />
                <Action>
                    EventGhost.PythonCommand(u'ttk_key= " "')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'taps = 0')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(377), 2, True)
                </Action>
                <Action>
                    Timer.TimerAction(u'ttk', 0, 1, 1.0, u'ttk', False, True, 1, u'00:00:00')
                </Action>
                <Action>
                    EventGhost.Wait(1.5)
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="Get input">
                <Event Name="X10.Num1" />
                <Event Name="X10.Num2" />
                <Event Name="X10.Num3" />
                <Event Name="X10.Num4" />
                <Event Name="X10.Num5" />
                <Event Name="X10.Num6" />
                <Event Name="X10.Num7" />
                <Event Name="X10.Num8" />
                <Event Name="X10.Num9" />
                <Event Name="X10.Num0" />
                <Action>
                    EventGhost.PythonCommand(u'taps = taps + 1')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'if taps &gt; len(ttk[eg.event.string]) : taps = 1')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'ttk_key = ttk[eg.event.string][taps-1]')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD( "\'" + ttk_key + "\'", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (255, 255 , 255), (0, 0, 0), 4, (0, 0), 0, 1.6, eg.globals.myConfigOSDSkin)')
                </Action>
                <Action Enabled="False">
                    EventGhost.ShowOSD(u'{ttk_key}', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (0, 202, 0), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
                </Action>
                <Action>
                    Timer.TimerAction(u'ttk', 1, 1, 1.0, u'ttk-2-', True, True, 0, u'00:00:00')
                </Action>
            </Macro>
            <Macro Name="Type key">
                <Event Name="Timer.ttk" />
                <Action>
                    EventGhost.PythonCommand(u'taps = 0')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(  "\'" + ttk_key + "\'", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (0, 255 , 0), (0, 0, 0), 4, (0, 0), 0, 1.6, eg.globals.myConfigOSDSkin)')
                </Action>
                <Action Enabled="False">
                    EventGhost.ShowOSD(u'Selected key: {ttk_key}', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (0, 202, 0), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'ttk_key == eg.globals.myConfigTTKempty')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(373), 0, False)
                </Action>
                <Action>
                    Window.SendKeys(u'{ttk_key}', False)
                </Action>
            </Macro>
            <Macro Name="DoNothing" id="373">
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Folder Name="Shift">
                <Folder Name="Shift a-z" id="376" Enabled="False">
                    <Macro Name="Presets a-z" id="377">
                        <Action>
                            EventGhost.PythonCommand(u'ttk = { "X10.Num1":(".", ",", "?", "!", "\'", "\\"", "1", "(", ")", "@", "/", ":", "_", eg.globals.myConfigTTKempty), "X10.Num2":("a", "b", "c", "2", u"\xe4", eg.globals.myConfigTTKempty), "X10.Num3":("d", "e", "f", "3", eg.globals.myConfigTTKempty), "X10.Num4":("g", "h", "i", "4", eg.globals.myConfigTTKempty), "X10.Num5":("j", "k", "l", "5", eg.globals.myConfigTTKempty), "X10.Num6":("m", "n", "o", "6", u"\xf6", eg.globals.myConfigTTKempty), "X10.Num7":("p", "q", "r", "s", "7", u"\xdf", eg.globals.myConfigTTKempty), "X10.Num8":("t", "u", "v", "8", u"\xfc", eg.globals.myConfigTTKempty), "X10.Num9":("w", "x", "y", "z", "9", eg.globals.myConfigTTKempty), "X10.Num0":(" ", "0", eg.globals.myConfigTTKempty) }')
                        </Action>
                    </Macro>
                    <Macro Name="Aktiviere exklusiv: Shift A-Z">
                        <Event Name="X10.ChannelSearch" />
                        <Action>
                            EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(  " A-Z ", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (0, 255 , 0), (0, 0, 0), 4, (0, 0), 0, .3, eg.globals.myConfigOSDSkin)')
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(385), 2, True)
                        </Action>
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(384))
                        </Action>
                    </Macro>
                </Folder>
                <Folder Name="Shift A-Z" id="384" Enabled="False">
                    <Macro Name="Presets A-Z" id="385">
                        <Action>
                            EventGhost.PythonCommand(u'ttk = { "X10.Num1":(".", ",", "?", "!", "\'", "\\"", "1", "(", ")", "@", "/", ":", "_", eg.globals.myConfigTTKempty), "X10.Num2":("A", "B", "C", "2", u"\xc4", eg.globals.myConfigTTKempty), "X10.Num3":("D", "E", "F", "3", eg.globals.myConfigTTKempty), "X10.Num4":("G", "H", "I", "4", eg.globals.myConfigTTKempty), "X10.Num5":("J", "K", "L", "5", eg.globals.myConfigTTKempty), "X10.Num6":("M", "N", "O", "6", u"\xd6", eg.globals.myConfigTTKempty), "X10.Num7":("P", "Q", "R", "S", "7", u"\xdf", eg.globals.myConfigTTKempty), "X10.Num8":("T", "U", "V", "8", u"\xdc", eg.globals.myConfigTTKempty), "X10.Num9":("W", "X", "Y", "Z", "9", eg.globals.myConfigTTKempty), "X10.Num0":(" ", "0", eg.globals.myConfigTTKempty) }')
                        </Action>
                    </Macro>
                    <Macro Name="Aktiviere exklusiv: Shift 0-1">
                        <Event Name="X10.ChannelSearch" />
                        <Action>
                            EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(  " 0-9 ", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (0, 255 , 0), (0, 0, 0), 4, (0, 0), 0, .3, eg.globals.myConfigOSDSkin)')
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(393), 2, True)
                        </Action>
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(392))
                        </Action>
                    </Macro>
                </Folder>
                <Folder Name="Shift 0-9" id="392">
                    <Macro Name="Presets 0-9" id="393">
                        <Action>
                            EventGhost.PythonCommand(u'ttk = { "X10.Num1":("1",), "X10.Num2":("2",), "X10.Num3":("3",), "X10.Num4":("4",), "X10.Num5":("5",), "X10.Num6":("6",), "X10.Num7":("7",), "X10.Num8":("8",), "X10.Num9":("9",), "X10.Num0":("0",) }')
                        </Action>
                    </Macro>
                    <Macro Name="Aktiviere exklusiv: Shift a-z">
                        <Event Name="X10.ChannelSearch" />
                        <Action>
                            EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(  " a-z ", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (0, 255 , 0), (0, 0, 0), 4, (0, 0), 0, .3, eg.globals.myConfigOSDSkin)')
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(377), 2, True)
                        </Action>
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(376))
                        </Action>
                    </Macro>
                </Folder>
            </Folder>
            <Macro Name="Ok -&gt; Enter Key">
                <Event Name="Ok" />
                <Action>
                    Window.SendKeys(u'{Enter}')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(40), 0, False)
                </Action>
            </Macro>
            <Macro Name="Backspace">
                <Event Name="X10.Delete" />
                <Action>
                    Window.SendKeys(u'{Backspace}', False)
                </Action>
            </Macro>
            <Macro Name="Up">
                <Event Name="Up" />
                <Action>
                    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>
                    Window.SendKeys(u'{Down}')
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="Left" />
                <Action>
                    Window.SendKeys(u'{Left}')
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="Right" />
                <Action>
                    Window.SendKeys(u'{Right}')
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Keyboard Emulation" Enabled="False">
            <Macro Name="Up">
                <Event Name="Up" />
                <Action>
                    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>
                    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>
                    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>
                    Window.SendKeys(u'{Left}')
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Ok -&gt; Enter Key">
                <Event Name="Ok" />
                <Action>
                    Window.SendKeys(u'{Enter}')
                </Action>
            </Macro>
            <Macro Name="Delete -&gt; Escape Key">
                <Event Name="Delete" />
                <Action>
                    Window.SendKeys(u'{Esc}')
                </Action>
            </Macro>
            <Macro Name="Power -&gt; Alt+F4">
                <Event Name="Power" />
                <Action>
                    Window.SendKeys(u'{Alt+F4}')
                </Action>
            </Macro>
            <Macro Name="Forward -&gt; Tabulator">
                <Event Name="Forward" />
                <Action>
                    Window.SendKeys(u'{Tab}')
                </Action>
            </Macro>
            <Macro Name="Rewind -&gt; Shift+Tabulator">
                <Event Name="Rewind" />
                <Action>
                    Window.SendKeys(u'{Shift+Tab}')
                </Action>
            </Macro>
            <Macro Name="ChannelUp -&gt; Plus">
                <Event Name="ChannelUp" />
                <Action>
                    Window.SendKeys(u'+')
                </Action>
            </Macro>
            <Macro Name="ChannelDown -&gt; Minus">
                <Event Name="ChannelDown" />
                <Action>
                    Window.SendKeys(u'-')
                </Action>
            </Macro>
            <Macro Name="Rename -&gt; Start Menu">
                <Event Name="Rename" />
                <Action>
                    Window.SendKeys(u'{Win}')
                </Action>
            </Macro>
            <Macro Name="Play -&gt; Space">
                <Event Name="Play" />
                <Action>
                    Window.SendKeys(u'{Space}')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="DVBViewer" id="467" Enabled="False">
            <Macro Name="DVBViewer: Start DVBViewer" id="468">
                <Action>
                    EventGhost.ShowOSD(u'Erfolgreich', u'0;-80;0;0;0;700;0;0;0;0;3;2;1;66;Comic Sans MS', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
                </Action>
                <Action>
                    DVBViewer.Start()
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="Forced Restart">
                <Action Name="Taskkill ZoomPlayer">
                    System.Execute(u'C:\\WINDOWS\\system32\\taskkill.exe', u'/F /IM zplayer.exe /T', 1, True, 2)
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 0">
                <Event Name="X10.Num0" />
                <Action Enabled="False">
                    DVBViewer.Channel0()
                </Action>
                <Action>
                    DVBViewer.Favourite0()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 1">
                <Event Name="X10.Num1" />
                <Action>
                    DVBViewer.Favourite1()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel1()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 2">
                <Event Name="X10.Num2" />
                <Action>
                    DVBViewer.Favourite2()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel2()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 3">
                <Event Name="X10.Num3" />
                <Action>
                    DVBViewer.Favourite3()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel3()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 4">
                <Event Name="X10.Num4" />
                <Action>
                    DVBViewer.Favourite4()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel4()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 5">
                <Event Name="X10.Num5" />
                <Action>
                    DVBViewer.Favourite5()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel5()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 6">
                <Event Name="X10.Num6" />
                <Action>
                    DVBViewer.Favourite6()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel6()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 7">
                <Event Name="X10.Num7" />
                <Action>
                    DVBViewer.Favourite7()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel7()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 8">
                <Event Name="X10.Num8" />
                <Action>
                    DVBViewer.Favourite8()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel8()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel 9">
                <Event Name="X10.Num9" />
                <Action>
                    DVBViewer.Favourite9()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channel9()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Last Channel">
                <Event Name="X10.Delete" />
                <Action>
                    DVBViewer.LastChannel()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channellist" Enabled="False">
                <Event Name="X10.ChannelList" />
                <Action Enabled="False">
                    DVBViewer.OSDShowChannels()
                </Action>
                <Action Enabled="False">
                    DVBViewer.Channellist()
                </Action>
                <Action>
                    DVBViewer.OSDShowFavourites()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel +">
                <Event Name="X10.ChannelDown" />
                <Action>
                    DVBViewer.FavouritePlus()
                </Action>
                <Action Enabled="False">
                    DVBViewer.ChannelPlus()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Channel -">
                <Event Name="X10.ChannelUp" />
                <Action>
                    DVBViewer.FavouriteMinus()
                </Action>
                <Action Enabled="False">
                    DVBViewer.ChannelMinus()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Optionskanäle">
                <Event Name="X10.ChannelSearch" />
                <Action Enabled="False">
                    DVBViewer.OSDShowEPG()
                </Action>
                <Action>
                    DVBViewer.OSDShowNow()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Record">
                <Event Name="X10.Record" />
                <Action>
                    DVBViewer.Record()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action Enabled="False">
                    DVBViewer.OSDShowRecordings()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Fullscreen">
                <Event Name="X10.Fullscreen" />
                <Action>
                    DVBViewer.Fullscreen()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Aspect">
                <Event Name="X10.VideoDesktop" />
                <Action>
                    DVBViewer.Aspect()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: Zoomlevel Toggle">
                <Action>
                    DVBViewer.ZoomlevelToggle()
                </Action>
            </Macro>
            <Macro Name="Up">
                <Event Name="Up" />
                <Action>
                    DVBViewer.OSDUp()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Down">
                <Event Name="Down" />
                <Action>
                    DVBViewer.OSDDown()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="Right" />
                <Action>
                    DVBViewer.OSDRight()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="Left" />
                <Action>
                    DVBViewer.OSDLeft()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Close">
                <Event Name="X10.Rename" />
                <Action>
                    DVBViewer.OSDClose()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-OK">
                <Event Name="X10.Ok" />
                <Action>
                    DVBViewer.OSDOK()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Red">
                <Event Name="X10.Red" />
                <Action>
                    DVBViewer.OSDRed()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Green">
                <Event Name="X10.Green" />
                <Action>
                    DVBViewer.OSDGreen()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Yellow">
                <Event Name="X10.Yellow" />
                <Action>
                    DVBViewer.OSDYellow()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Blue">
                <Event Name="X10.Blue" />
                <Action>
                    DVBViewer.OSDBlue()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Menu">
                <Event Name="X10.Snapshot" />
                <Action>
                    DVBViewer.OSDMenu()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Teletext">
                <Event Name="X10.TXT" />
                <Action>
                    DVBViewer.OSDTeletext()
                </Action>
            </Macro>
            <Macro Name="DVBViewer: OSD-Show Video">
                <Event Name="X10.VCR" />
                <Action>
                    DVBViewer.OSDShowVideo()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="DVD Inserted" Enabled="False">
                <Event Name="System.DriveMounted.D" Enabled="False" />
                <Event Name="DVBViewer.Playstatechange:RenderTy0State2" />
                <Action>
                    EventGhost.ShowOSD(u'DVD Modus', u'0;-80;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, True)
                </Action>
                <Action Enabled="False">
                    DVBViewer.DVDMenu()
                </Action>
            </Macro>
            <Macro Name="DVD Chapter +">
                <Event Name="X10.NextTrack" />
                <Action>
                    DVBViewer.Next()
                </Action>
            </Macro>
            <Macro Name="DVD Chapter -">
                <Event Name="X10.PreviousTrack" />
                <Action>
                    DVBViewer.Previous()
                </Action>
            </Macro>
            <Macro Name="Fast Forward">
                <Event Name="X10.Forward" />
                <Action>
                    DVBViewer.SpeedUp()
                </Action>
            </Macro>
            <Macro Name="Fast Rewind">
                <Event Name="X10.Rewind" />
                <Action>
                    DVBViewer.SpeedDown()
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="X10.Play" />
                <Action>
                    DVBViewer.Play()
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="X10.Pause" />
                <Action>
                    DVBViewer.Pause()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="TripleTapKeys" Enabled="False" />
        <Folder Name="Silverjuke" id="639" Enabled="False">
            <Macro Name="Starte Anwendung: Silverjuke.exe" id="640">
                <Action>
                    System.Execute(u'c:\\Programme\\Silverjuke\\silverjuke.exe', u'--kiosk --skiperrors  --db=c:\\Einstellungen\\Silverjuke\\mymusic.db --ini=c:\\Einstellungen\\Silverjuke\\mymusic.ini', 0, False, 2, u'c:\\Programme\\Silverjuke')
                </Action>
            </Macro>
            <Macro Name="Forced Restart">
                <Action Name="Taskkill Silverjuke">
                    System.Execute(u'C:\\WINDOWS\\system32\\taskkill.exe', u'/F /IM silverjuke.exe /T', 1, True, 2, u'')
                </Action>
            </Macro>
            <Macro Name="Up">
                <Event Name="Up" />
                <Action>
                    Window.SendKeys(u'{Shift+Ctrl+Alt+Up}', True)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Down">
                <Event Name="Down" />
                <Action>
                    Window.SendKeys(u'{Shift+Ctrl+Alt+Down}', True)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="Right" />
                <Action>
                    Window.SendKeys(u'{Shift+Ctrl+Alt+Right}', True)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="Left" />
                <Action>
                    Window.SendKeys(u'{Shift+Ctrl+Alt+Left}', True)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Ok -&gt; Enter Key">
                <Event Name="Ok" />
                <Action>
                    Window.SendKeys(u'{Enter}')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Play -&gt; Space">
                <Event Name="Play" />
                <Action>
                    Window.SendKeys(u'{Space}')
                </Action>
            </Macro>
            <Macro Name="Ansicht wechseln">
                <Event Name="X10.VideoDesktop" />
                <Action>
                    Window.SendKeys(u'{F3}', False)
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Gehe zum vorherigen Buchstaben">
                <Event Name="X10.PreviousTrack" />
                <Action>
                    Window.SendKeys(u'{Ctrl+Alt+Left}', False)
                </Action>
            </Macro>
            <Macro Name="Gehe zum nächsten Buchstaben">
                <Event Name="X10.NextTrack" />
                <Action>
                    Window.SendKeys(u'{Ctrl+Alt+Right}', False)
                </Action>
            </Macro>
            <Macro Name="Gehe Irgendwohin">
                <Event Name="X10.Snapshot" />
                <Action>
                    Window.SendKeys(u'{Ctrl+r}', False)
                </Action>
            </Macro>
            <Macro Name="Titel aus Wiedergabeliste entfernen">
                <Event Name="X10.Rename" />
                <Action>
                    Window.SendKeys(u'{Ctrl+u}', False)
                </Action>
            </Macro>
            <Macro Name="Titel als nächstes spielen">
                <Event Name="X10.Snapshot" />
                <Action>
                    Window.SendKeys(u'{Ctrl+n}', False)
                </Action>
            </Macro>
            <Macro Name="Aktuellen Titel vorspulen">
                <Event Name="X10.Forward" />
                <Action>
                    Window.SendKeys(u'{Shift+Right}', True)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.0, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Aktuellen Titel zurückspulen">
                <Event Name="X10.Rewind" />
                <Action>
                    Window.SendKeys(u'{Shift+Left}', True)
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.0, 0.29999999999999999, 0.01, 3.0)
                </Action>
            </Macro>
            <Macro Name="Wiedergabeliste: Nächster Titel">
                <Event Name="X10.ChannelUp" />
                <Action>
                    Window.SendKeys(u'{Ctrl+Right}', True)
                </Action>
            </Macro>
            <Macro Name="Wiedergabeliste: Vorheriger Titel">
                <Event Name="X10.ChannelDown" />
                <Action>
                    Window.SendKeys(u'{Ctrl+Left}', True)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Flip3D" Enabled="False">
            <Macro Name="Send xx">
                <Action>
                    EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(44,0,0,0)\nwin32api.keybd_event(44,0,2,0)')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Firefox" id="707" Enabled="False">
            <Macro Name="Start Firefox" id="708">
                <Action>
                    System.Execute(u'C:\\Programme\\Mozilla Firefox\\firefox.exe', u'', 2, False, 2, u'C:\\Programme\\Mozilla Firefox\\')
                </Action>
            </Macro>
            <Macro Name="Suche" />
            <Macro Name="Toggle Fullscreen">
                <Action>
                    Window.FindWindow(u'firefox.exe', None, None, None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.SendKeys(u'{F11}', False)
                </Action>
            </Macro>
            <Macro Name="Go One Screen Down ">
                <Event Name="X10.Down" />
                <Action>
                    Window.FindWindow(u'firefox.exe', None, None, None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.SendKeys(u'{PageDown}', False)
                </Action>
            </Macro>
            <Macro Name="Go One Screen Up">
                <Event Name="X10.Up" />
                <Action>
                    Window.FindWindow(u'firefox.exe', None, None, None, None, None, False, 0.0, 0)
                </Action>
                <Action>
                    Window.SendKeys(u'{PageUp}', False)
                </Action>
            </Macro>
            <Macro Name="Previous Action Element">
                <Event Name="X10.Left" />
                <Action>
                    Window.SendKeys(u'{Shift+Tabulator}', False)
                </Action>
            </Macro>
            <Macro Name="Next Action Element">
                <Event Name="X10.Right" />
                <Action>
                    Window.SendKeys(u'{Tabulator}', False)
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Macro Name="Mute Sound Card">
        <Event Name="Mute" />
        <Action>
            System.ToggleMute()
        </Action>
        <Action>
            EventGhost.NewJumpIf(XmlIdLink(791), 0, False)
        </Action>
        <Action>
            EventGhost.NewJumpIf(XmlIdLink(793), 2, False)
        </Action>
    </Macro>
    <Macro Name="Decrease Volume">
        <Event Name="VolumeDown" />
        <Action>
            System.MuteOff(0)
        </Action>
        <Action>
            System.ChangeMasterVolumeBy(-5.0, 0)
        </Action>
        <Action>
            EventGhost.NewJumpIf(XmlIdLink(788), 2, True)
        </Action>
        <Action>
            EventGhost.AutoRepeat(0.10000000000000001, 0.29999999999999999, 0.01, 3.0)
        </Action>
    </Macro>
    <Macro Name="Increase Volume">
        <Event Name="VolumeUp" />
        <Action>
            System.MuteOff(0)
        </Action>
        <Action>
            System.ChangeMasterVolumeBy(5.0, 0)
        </Action>
        <Action>
            EventGhost.NewJumpIf(XmlIdLink(788), 2, True)
        </Action>
        <Action>
            EventGhost.AutoRepeat(0.10000000000000001, 0.29999999999999999, 0.01, 3.0)
        </Action>
    </Macro>
    <Folder Name="Tools">
        <Macro Name="Test" Enabled="False">
            <Event Name="X10.Photo" />
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myNextAction=eg.global.myConfigModeTVText')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(782), 2, True)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.myNextActionConfirmed')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(754), 0, False)
            </Action>
            <Action>
                EventGhost.Wait(0.75)
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Macro Name="Start TV Modus" id="754" Enabled="False">
            <Action Enabled="False">
                EventGhost.ShowOSD(u'Erfolgreich', u'0;-80;0;0;0;700;0;0;0;0;3;2;1;66;Comic Sans MS', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Folder Name="ConfirmAction">
            <Macro Name="CA_Countdown" id="758">
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionCounter = eg.globals.myNextActionCounter - 1')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(   ( eg.globals.myNextActionCounter*eg.globals.myConfigOSDCountSymbol  + " "+ eg.globals.myNextAction  + " " +  eg.globals.myNextActionCounter*eg.globals.myConfigOSDCountSymbol  ) , u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+ eg.globals.myConfigOSDFont, (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 1, eg.globals.myConfigOSDSkin)')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionCounter == 0')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(780), 0, True)
                </Action>
                <Action id="763" Enabled="False">
                    EventGhost.AutoRepeat(0.40000000000000002, 0.29999999999999999, 0.01, 3.0)
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="CA_KeyPressed" id="765">
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(758), 2, True)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionCounter == 0')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(772), 1, True)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionCounter == 0')
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(776), 0, False)
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="CA_Canceled" id="772">
                <Action>
                    EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(   " "+ eg.globals.myConfigAborted +" ", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (255, 0 , 0), (0, 0, 0), 4, (0, 0), 0, .3, eg.globals.myConfigOSDSkin)')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionConfirmed = False')
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="CA_Confirmed" id="776">
                <Action>
                    EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(   " "+ eg.globals.myNextAction +" ", u\'0;-120;0;0;0;700;0;0;0;0;3;2;1;34;\'+eg.globals.myConfigOSDFont, (0, 255, 0), (0, 0, 0), 4, (0, 0), 0, .3, eg.globals.myConfigOSDSkin)')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionConfirmed = True')
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="CA_QuitRepeat" id="780">
                <Action>
                    EventGhost.DisableItem(XmlIdLink(763))
                </Action>
            </Macro>
            <Macro Name="Confirm" id="782">
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionCounter = 4')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.myNextActionConfirmed = 0')
                </Action>
                <Action>
                    EventGhost.EnableItem(XmlIdLink(763))
                </Action>
                <Action>
                    EventGhost.JumpIfLongPress(0.25, XmlIdLink(765))
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Volume">
            <Macro Name="ShowVolume" id="788">
                <Action>
                    EventGhost.PythonCommand(u'vol = eg.WinApi.SoundMixer.GetMasterVolume()')
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.plugins.EventGhost.ShowOSD(u\'X \' + ("\\x67" *int(round(vol/4) * 0.5)) + ("\\x63" *int(round(25-vol/4) * 0.5)), u\'0;-40;0;0;0;700;0;0;0;2;3;2;1;34;Webdings\', (0, 255 , 0), (0, 0, 0), 3, (0, 0), 0, .75, eg.globals.myConfigOSDSkin)')
                </Action>
            </Macro>
            <Macro Name="ShowMuteOn" id="791">
                <Action>
                    EventGhost.PythonCommand(u"eg.plugins.EventGhost.ShowOSD(u'Xr', u'0;-40;0;0;0;700;0;0;0;2;3;2;1;34;Webdings', (0, 255 , 0), (0, 0, 0), 3, (0, 0), 0, 0.0, eg.globals.myConfigOSDSkin)")
                </Action>
            </Macro>
            <Macro Name="ShowMuteOff" id="793">
                <Action>
                    EventGhost.PythonCommand(u"eg.plugins.EventGhost.ShowOSD(u'X\\xf0', u'0;-40;0;0;0;700;0;0;0;2;3;2;1;34;Webdings', (0, 255 , 0), (0, 0, 0), 3, (0, 0), 0, 2, eg.globals.myConfigOSDSkin)")
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Help Screen">
            <Macro Name="Toggle Help Screen">
                <Event Name="X10.Setup" />
                <Action>
                    EventGhost.PythonCommand(u"help={0:(eg.globals.myConfigPath + u'helpscreens\\\\mode_' + eg.globals.myCurrentAction + u'.jpg'),1:''}")
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'helpState= abs(helpState-1)')
                </Action>
                <Action Enabled="False">
                    EventGhost.ShowOSD(u'{help[helpState]}', u'0;-30;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0, False)
                </Action>
                <Action Enabled="False">
                    EventGhost.ShowOSD(u'{eg.globals.myCurrentAction}', u'0;-30;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0, False)
                </Action>
                <Action>
                    System.ShowPicture(u'{help[helpState]}', 0)
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
                <Action>
                    EventGhost.FlushEvents()
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="Other Examples" Enabled="False">
        <Folder Name="State Folder Example">
            <Folder Name="Folder1" id="807">
                <Macro Name="Enable other Folder">
                    <Event Name="Blue" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(812))
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Folder2" id="812" Enabled="False">
                <Macro Name="Enable other Folder">
                    <Event Name="Blue" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(817))
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Folder3" id="817" Enabled="False">
                <Macro Name="Enable other Folder">
                    <Event Name="Blue" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(807))
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="State Macro Example">
            <Macro Name="State1" id="823" Enabled="False">
                <Event Name="Green" />
                <Action>
                    EventGhost.DisableItem(XmlIdLink(823))
                </Action>
                <Action>
                    EventGhost.EnableItem(XmlIdLink(829))
                </Action>
                <Action Enabled="False">
                    System.MonitorPowerOff()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="State2" id="829">
                <Event Name="Green" />
                <Action>
                    EventGhost.EnableItem(XmlIdLink(823))
                </Action>
                <Action>
                    EventGhost.DisableItem(XmlIdLink(829))
                </Action>
                <Action>
                    System.MonitorPowerOn()
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="State Macro Example 2">
            <Macro Name="Macro1" id="836">
                <Event Name="Yellow" />
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(840))
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Macro2" id="840" Enabled="False">
                <Event Name="Yellow" />
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(844))
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
            <Macro Name="Macro3" id="844" Enabled="False">
                <Event Name="Yellow" />
                <Action>
                    EventGhost.EnableExclusive(XmlIdLink(836))
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
        </Folder>
    </Folder>
</EventGhost>
