﻿<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1582" Guid="{230CE824-5078-4638-9FCD-601E43E42DD2}" Time="1350682808.51">
    <Action Name="Scripts">
        EventGhost.PythonScript(u'    import wmi\n    d = wmi.WMI ()\n    for s in d.Win32_DisplayConfiguration ():\n        # If you want to see everything uncomment below\n        # print s\n        eg.globals.displaywidth = s.PelsWidth\n        eg.globals.displayheight = s.PelsHeight\n        eg.globals.displayfrq = s.DisplayFrequency\n        eg.globals.displaypix = s.LogPixels\n        eg.globals.displaybit = s.BitsPerPel\n        eg.globals.displayname = s.Caption\n\n    print "Device: ",eg.globals.displayname\n    print "Resolution: ",eg.globals.displaywidth, "x", eg.globals.displayheight\n    print "Frequency: ",eg.globals.displayfrq\n    print "Pixel Density: ",eg.globals.displaypix\n    print "Color Depth: ",eg.globals.displaybit,"bit"')
    </Action>
    <Autostart Name="Autostart" Expanded="True">
        <Action Name="Set Display1 to mode 1280x800@50 Hz" Enabled="False">
            System.ChangeDisplaySettings(1, (1280L, 800L), 50L, 32L, True, False)
        </Action>
        <Plugin Identifier="AtiRemoteWonder2" Guid="{74DBFE39-FEF6-41E5-A047-96454512B58D}" File="AtiRemoteWonder2WinUsb">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="Task" Guid="{D1748551-C605-4423-B392-FB77E6842437}" File="Task">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="XBMC2" Guid="{8C8B850C-773F-4583-AAD9-A568262B7933}" File="XBMCRepeat">
            gAJYCQAAADEyNy4wLjAuMXEAWAQAAAA4MDgwcQF9cQIoVQlCcm9hZGNhc3RxA31xBChVBkVuYWJsZXEFiFUEUG9ydHEGTVYgVQpXb3JrYXJvdW5kcQeJdVUMTG9nUmF3RXZlbnRzcQiJVQdKU09OUlBDcQl9cQooVQlSZXRyeVRpbWVxC0sFaAZNgiNVBlJldHJ5c3EMSwV1dYdxDS4=
        </Plugin>
        <Action>
            EventGhost.DisableItem(XmlIdLink(281))
        </Action>
        <Plugin Identifier="OSM" Guid="{FCF3C7A7-FBC1-444D-B768-9477521946DC}" File="OSM">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="OSE" Guid="{D3D2DDD1-9BEB-4A26-969B-C82FA8EAB280}" File="OSE">
            gAJYAwAAAD4+IHEAWAQAAAB84oCicQGGcQIu
        </Plugin>
        <Plugin Identifier="Ffdshow" Guid="{4CBEB5C8-97E2-4F65-A355-E72FCED4951F}" File="ffdshow">
            gAIpLg==
        </Plugin>
    </Autostart>
    <Folder Name="OSD" Expanded="True">
        <Macro Name='Show OSD: "eg.globals.displaywidth"' Expanded="True">
            <Event Name="AtiRemoteWonder2.D" />
            <Action>
                EventGhost.ShowOSD(u'R\xe9solution : {eg.globals.displaywidth}x{eg.globals.displayheight}\nFr\xe9quence : {eg.globals.displayfrq}', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 128, 0), (0, 0, 0), 0, (0, 0), 0, 3.0, True)
            </Action>
        </Macro>
    </Folder>
    <Folder Name="OS Menu">
        <Macro Name="Show menu">
            <Event Name="AtiRemoteWonder2.ATI" />
            <Action>
                OSM.ShowMenu([(u'Filtres directshow', u'Filtres directshow'), (u'R\xe9solutions', u'R\xe9solution'), (u'Volume syst\xe8me', u'Volume syst\xe8me'), (u'Extinction auto \xe9cran', u'Extinction auto \xe9cran')], (255, 128, 0), (192, 192, 192), u'0;-48;0;0;0;400;0;0;0;0;3;2;1;34;Tahoma', u'OSM', 0, 0, (255, 128, 0), (0, 0, 0), False, True)
            </Action>
        </Macro>
        <Macro Name="Cursor Down">
            <Event Name="AtiRemoteWonder2.Down" />
            <Action>
                OSM.MoveDown()
            </Action>
        </Macro>
        <Macro Name="Cursor Up">
            <Event Name="AtiRemoteWonder2.Up" />
            <Action>
                OSM.MoveUp()
            </Action>
        </Macro>
        <Macro Name="Page Up">
            <Event Name="AtiRemoteWonder2.ChannelUp" />
            <Action>
                OSM.PageUp()
            </Action>
        </Macro>
        <Macro Name="Page Down">
            <Event Name="AtiRemoteWonder2.ChannelDown" />
            <Action>
                OSM.PageDown()
            </Action>
        </Macro>
        <Macro Name="OK">
            <Event Name="AtiRemoteWonder2.Ok" />
            <Action>
                OSM.OK_Btn()
            </Action>
        </Macro>
        <Macro Name="Cancel">
            <Event Name="AtiRemoteWonder2.C" />
            <Action>
                OSM.Cancel_Btn()
            </Action>
        </Macro>
        <Folder Name="Filtres directshow">
            <Folder Name="Presets">
                <Folder Name="Choix preset ffdshow">
                    <Macro Name="0-255">
                        <Event Name="OSM.Pour vidéo 0-255" />
                        <Action>
                            Ffdshow.SetPreset(u'Default')
                        </Action>
                    </Macro>
                    <Macro Name="16-235">
                        <Event Name="OSM.Pour vidéo 16-235" />
                        <Action>
                            Ffdshow.SetPreset(u'Videos perso')
                        </Action>
                    </Macro>
                </Folder>
                <Macro Name="OS Menu: Show menu: Configuration par défaut, Pour vidéo 16-235">
                    <Event Name="OSM.Choix preset ffdshow" />
                    <Action>
                        OSM.ShowMenu([(u'Pour vid\xe9o 0-255', u'Pour vid\xe9o 0-255'), (u'Pour vid\xe9o 16-235', u'Pour vid\xe9o 16-235')], (255, 128, 0), (192, 192, 192), u'0;-48;0;0;0;400;0;0;0;0;0;0;0;0;MS Shell Dlg 2', u'OSM', 0, 0, (255, 128, 0), (0, 0, 0), False, True)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Filtres">
                <Macro Name="Start Program: lav actif.bat" Expanded="True">
                    <Event Name="OSM.Filtre Lav" />
                    <Action>
                        System.Execute(u'D:\\Yvan\\_SoftWare\\Video\\xbmc\\DSP\\choix filtre lecture mkv\\lav actif.bat', u'', 0, False, 2, u'', False)
                    </Action>
                </Macro>
                <Macro Name="Start Program: ffdshow actif.bat" Expanded="True">
                    <Event Name="OSM.Filtre ffdshow" />
                    <Action>
                        System.Execute(u'D:\\Yvan\\_SoftWare\\Video\\xbmc\\DSP\\choix filtre lecture mkv\\ffdshow actif.bat', u'', 0, False, 2, u'', False)
                    </Action>
                </Macro>
            </Folder>
            <Macro Name="OS Menu: Show menu: Choix filtres">
                <Event Name="OSM.Filtres directshow" />
                <Action>
                    OSM.ShowMenu([(u'Filtre ffdshow', u'Filtre ffdshow'), (u'    Choix preset ffdshow', u'Choix preset ffdshow'), (u'Filtre Lav', u'Filtre Lav')], (255, 128, 0), (192, 192, 192), u'0;-48;0;0;0;400;0;0;0;0;0;0;0;0;MS Shell Dlg 2', u'OSM', 0, 0, (255, 128, 0), (0, 0, 0), False, True)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Monitor On/Off">
            <Macro Name="Monitor Off">
                <Event Name="AtiRemoteWonder2.TV" />
                <Action>
                    System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\608.wav', 1, False)
                </Action>
                <Action>
                    System.MonitorPowerOff()
                </Action>
            </Macro>
            <Macro Name="Monitor On">
                <Event Name="AtiRemoteWonder2.DVD" />
                <Action>
                    System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\608.wav', 1, False)
                </Action>
                <Action>
                    System.MonitorPowerOn()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Choix résolutions">
            <Folder Name="Résolutions" Expanded="True">
                <Macro Name="Set Display1 to mode 1280x800@50 Hz">
                    <Event Name="OSM.1280x800@50Hz" />
                    <Action Name="Set Display1 to mode 1280x800@50 Hz">
                        System.ChangeDisplaySettings(1, (1280L, 800L), 50L, 32L, True, False)
                    </Action>
                </Macro>
                <Macro Name="Set Display1 to mode 1280x800@60 Hz">
                    <Event Name="OSM.1280x800@60Hz" />
                    <Action>
                        System.ChangeDisplaySettings(1, (1280L, 800L), 60L, 32L, True, False)
                    </Action>
                </Macro>
                <Macro Name="Set Display1 to mode 1920x1200@60 Hz">
                    <Event Name="OSM.1920x1200@60Hz" />
                    <Action>
                        System.ChangeDisplaySettings(1, (1920L, 1200L), 60L, 32L, False, False)
                    </Action>
                </Macro>
                <Macro Name="Set Display1 to mode 1280x800@72 Hz">
                    <Event Name="OSM.1280x800@72Hz" />
                    <Action>
                        System.ChangeDisplaySettings(1, (1280L, 800L), 72L, 32L, False, False)
                    </Action>
                </Macro>
            </Folder>
            <Macro Name="OS Menu: Show menu: Choix résolution">
                <Event Name="OSM.Résolution" />
                <Action>
                    OSM.ShowMenu([(u'1280x800@50Hz', u'1280x800@50Hz'), (u'1280x800@60Hz', u'1280x800@60Hz'), (u'1280x800@72Hz', u'1280x800@72Hz'), (u'1920x1200@60Hz', u'1920x1200@60Hz')], (255, 128, 0), (192, 192, 192), u'0;-48;0;0;0;400;0;0;0;0;0;0;0;0;MS Shell Dlg 2', u'OSM', 0, 0, (255, 128, 0), (0, 0, 0), False, True)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Choix volume sytème">
            <Macro Name="OS Menu: Show menu: Volume système">
                <Event Name="OSM.Volume système" />
                <Action>
                    OSM.ShowMenu([(u'Volume syst\xe8me 100%', u'Volume syst\xe8me 100%'), (u'Volume syst\xe8me 0%', u'Volume syst\xe8me 0%')], (255, 128, 0), (192, 192, 192), u'0;-48;0;0;0;400;0;0;0;0;0;0;0;0;MS Shell Dlg 2', u'OSM', 0, 0, (255, 128, 0), (0, 0, 0), False, True)
                </Action>
            </Macro>
            <Folder Name="Volume système">
                <Macro Name="Set Master Volume: 100.00 %">
                    <Event Name="OSM.Volume système 100%" />
                    <Action>
                        System.SetMasterVolume(100.0, 0)
                    </Action>
                </Macro>
                <Macro Name="Set Master Volume: 0.00 %">
                    <Event Name="OSM.Volume système 0%" />
                    <Action>
                        System.SetMasterVolume(0.0, 0)
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="Extinction auto écran">
            <Macro Name="OS Menu: Show menu: Extinction auto off, Extinction auto on">
                <Event Name="OSM.Extinction auto écran" />
                <Action>
                    OSM.ShowMenu([(u'Extinction auto off', u'Extinction auto off'), (u'Extinction auto on', u'Extinction auto on')], (255, 128, 0), (192, 192, 192), u'0;-48;0;0;0;400;0;0;0;0;0;0;0;0;MS Shell Dlg 2', u'OSM', 0, 0, (255, 128, 0), (0, 0, 0), False, True)
                </Action>
            </Macro>
            <Folder Name="Monitor switching on">
                <Macro Name="Enable: Monitor Switching">
                    <Event Name="OSM.Extinction auto on" />
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(281))
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Monitor switching off">
                <Macro Name="Disable: Monitor Switching">
                    <Event Name="OSM.Extinction auto off" />
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(281))
                    </Action>
                </Macro>
            </Folder>
        </Folder>
    </Folder>
    <Folder Name="XBMC">
        <Folder Name="XBMC mode petite fenêtre">
            <Macro Name="Emulate Keystrokes: µ">
                <Event Name="AtiRemoteWonder2.Help" />
                <Action>
                    Window.SendKeys(u'\xb5', False)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="XBMC - Maximize / Minimize">
            <Folder Name="Test Full screen">
                <Macro Name="Python Script - Test full screen" Expanded="True">
                    <Event Name="AtiRemoteWonder2.A" />
                    <Action>
                        System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\608.wav', 1, False)
                    </Action>
                    <Action Name="Python Script - Test full screen">
                        EventGhost.PythonScript(u"from win32gui import FindWindow, GetWindowPlacement\n\ntry:\n    if (GetWindowPlacement(FindWindow('XBMC','XBMC'))[1] == 2):\n        eg.result = True\n    else:\n        eg.result = False\n\nexcept:\n    pass")
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(125), 0, False)
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(122), 1, False)
                    </Action>
                </Macro>
            </Folder>
            <Macro Name="Minimise XBMC.exe" id="122">
                <Action>
                    XBMC2.Minimize()
                </Action>
                <Action Name='Ajouter : &lt;f1 mod="ctrl,shift,alt"&gt;XBMC.Minimize()&lt;/f1&gt; dans C:\Logiciels\Video\XBMC\system\keymaps\keyboard.xml'>
                    EventGhost.Comment()
                </Action>
            </Macro>
            <Macro Name="Maximise XBMC.exe" id="125" Expanded="True">
                <Action>
                    Window.FindWindow(u'XBMC.exe', None, None, None, None, None, False, 0.0, 2)
                </Action>
                <Action>
                    Window.Maximize()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="XBMC - On/Off">
            <Macro Name="Test présence XBMC">
                <Event Name="AtiRemoteWonder2.B" />
                <Action>
                    EventGhost.JumpIfLongPress(1.0, XmlIdLink(140))
                </Action>
                <Action>
                    Window.FindWindow(u'XBMC.exe', None, None, None, None, None, False, 0.0, 2)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(143), 0, False)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(135), 2, False)
                </Action>
            </Macro>
            <Macro Name="Start XBMC DSF" id="135" Expanded="True">
                <Action>
                    System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\click.wav', 1, False)
                </Action>
                <Action Name="Start Program: XBMC.exe">
                    System.Execute(u'C:\\Logiciels\\Video\\XBMC\\XBMC.exe', u'-p', 2, False, 4, u'', False)
                </Action>
                <Action>
                    Window.FindWindow(u'XBMC.exe', u'XBMC', u'XBMC', None, None, None, False, 10.0, 2)
                </Action>
                <Action>
                    Window.BringToFront()
                </Action>
            </Macro>
            <Macro Name="Arret forcé XBMC" id="140">
                <Action>
                    System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\back.wav', 1, False)
                </Action>
                <Action>
                    System.Execute(u'C:\\Logiciels\\Utilitaires\\PSTools\\pskill.exe', u'xbmc', 0, False, 2, u'', False)
                </Action>
            </Macro>
            <Macro Name="Stop XBMC" id="143">
                <Action>
                    XBMC2.Quit()
                </Action>
                <Action>
                    System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\back.wav', 1, False)
                </Action>
                <Action>
                    EventGhost.StopProcessing()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Skips">
            <Folder Name="Skip forward">
                <Macro Name="Test appui long bouton ATI:Menu">
                    <Event Name="AtiRemoteWonder2.Num6" />
                    <Action>
                        EventGhost.JumpIfLongPress(0.80000000000000004, XmlIdLink(166))
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(170), 1, False)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Skip backward">
                <Macro Name="Test appui long bouton ATI:Menu">
                    <Event Name="AtiRemoteWonder2.Num4" />
                    <Action>
                        EventGhost.JumpIfLongPress(0.80000000000000004, XmlIdLink(164))
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(168), 1, False)
                    </Action>
                </Macro>
            </Folder>
            <Macro Name="Skip Previous">
                <Event Name="AtiRemoteWonder2.Num1" />
                <Action>
                    XBMC2.SkipPrevious()
                </Action>
            </Macro>
            <Macro Name="Skip Next">
                <Event Name="AtiRemoteWonder2.Num3" />
                <Action>
                    XBMC2.SkipNext()
                </Action>
            </Macro>
            <Macro Name="Big Skip Backward" id="164">
                <Action>
                    XBMC2.BigStepBack()
                </Action>
            </Macro>
            <Macro Name="Big Skip Forward" id="166">
                <Action>
                    XBMC2.BigStepForward()
                </Action>
            </Macro>
            <Macro Name="Small Skip Backward" id="168">
                <Action>
                    XBMC2.StepBack()
                </Action>
            </Macro>
            <Macro Name="Small Skip Forward" id="170">
                <Action>
                    XBMC2.StepForward()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Keyboard">
            <Macro Name="Info">
                <Event Name="AtiRemoteWonder2.F" />
                <Action>
                    XBMC2.RemoteInfo()
                </Action>
            </Macro>
            <Macro Name="Menu contextuel">
                <Event Name="AtiRemoteWonder2.Stopwatch" />
                <Action>
                    XBMC2.ContextMenu()
                </Action>
            </Macro>
            <Macro Name="Show OSD">
                <Event Name="AtiRemoteWonder2.Num0" />
                <Action>
                    Window.SendKeys(u'm', False)
                </Action>
            </Macro>
            <Macro Name="Up">
                <Event Name="AtiRemoteWonder2.Up" />
                <Action>
                    XBMC2.RemoteUp()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                </Action>
            </Macro>
            <Macro Name="Down">
                <Event Name="AtiRemoteWonder2.Down" />
                <Action>
                    XBMC2.RemoteDown()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                </Action>
            </Macro>
            <Macro Name="Left">
                <Event Name="AtiRemoteWonder2.Left" />
                <Action>
                    XBMC2.RemoteLeft()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                </Action>
            </Macro>
            <Macro Name="Right">
                <Event Name="AtiRemoteWonder2.Right" />
                <Action>
                    XBMC2.RemoteRight()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                </Action>
            </Macro>
            <Macro Name="Page Up">
                <Event Name="AtiRemoteWonder2.ChannelUp" />
                <Action>
                    XBMC2.ZoomIn()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.10000000000000001, 1.0)
                </Action>
            </Macro>
            <Macro Name="Page Down">
                <Event Name="AtiRemoteWonder2.ChannelDown" />
                <Action>
                    XBMC2.ZoomOut()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.10000000000000001, 1.0)
                </Action>
            </Macro>
            <Macro Name="Select">
                <Event Name="AtiRemoteWonder2.Ok" />
                <Action>
                    XBMC2.RemoteSelect()
                </Action>
            </Macro>
            <Macro Name="Previous Menu">
                <Action>
                    XBMC2.PreviousMenu()
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="AtiRemoteWonder2.Play" />
                <Action>
                    XBMC2.RemotePlay()
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="AtiRemoteWonder2.Pause" />
                <Action>
                    XBMC2.RemotePause()
                </Action>
            </Macro>
            <Macro Name="Stop">
                <Event Name="AtiRemoteWonder2.Stop" />
                <Action>
                    XBMC2.RemoteStop()
                </Action>
            </Macro>
            <Macro Name="Fast Forward" Expanded="True">
                <Event Name="AtiRemoteWonder2.FastForward" />
                <Action>
                    XBMC2.FastForward()
                </Action>
            </Macro>
            <Macro Name="Fast Rewind">
                <Event Name="AtiRemoteWonder2.FastRewind" />
                <Action>
                    XBMC2.Rewind()
                </Action>
            </Macro>
            <Macro Name="Aspect Ratio">
                <Event Name="AtiRemoteWonder2.Resize" />
                <Action>
                    XBMC2.AspectRatio()
                </Action>
            </Macro>
            <Macro Name="Full Screen">
                <Event Name="AtiRemoteWonder2.Record" />
                <Action>
                    XBMC2.FullScreen()
                </Action>
            </Macro>
            <Macro Name="Cancel">
                <Event Name="AtiRemoteWonder2.C" />
                <Action>
                    Window.SendKeys(u'{Esc}')
                </Action>
            </Macro>
            <Macro Name="Home">
                <Event Name="AtiRemoteWonder2.Num2" />
                <Action>
                    Window.SendKeys(u'{Home}', False)
                </Action>
            </Macro>
            <Macro Name="End">
                <Event Name="AtiRemoteWonder2.Num8" />
                <Action>
                    Window.SendKeys(u'{End}', False)
                </Action>
            </Macro>
            <Macro Name="Information Filtres &amp; Splitter">
                <Event Name="AtiRemoteWonder2.Info" />
                <Action>
                    XBMC2.CodecInfo()
                </Action>
                <Action Enabled="False">
                    Window.SendKeys(u'o', False)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Volume Control">
            <Macro Name="Volume +">
                <Event Name="AtiRemoteWonder2.VolumeUp" />
                <Action>
                    XBMC2.VolumeUp()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.80000000000000004, 0.29999999999999999, 0.050000000000000003, 1.2)
                </Action>
            </Macro>
            <Macro Name="Volume -">
                <Event Name="AtiRemoteWonder2.VolumeDown" />
                <Action>
                    XBMC2.VolumeDown()
                </Action>
                <Action>
                    EventGhost.AutoRepeat(0.80000000000000004, 0.29999999999999999, 0.050000000000000003, 1.2)
                </Action>
            </Macro>
            <Macro Name="Mute Volume">
                <Event Name="AtiRemoteWonder2.Mute" />
                <Action>
                    XBMC2.RemoteMute()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Sous titres">
            <Macro Name="If button is held down 1.0 sec, go to: ShowSubtitles">
                <Event Name="AtiRemoteWonder2.Setup" />
                <Action>
                    EventGhost.JumpIfLongPress(1.0, XmlIdLink(262))
                </Action>
                <Action>
                    XBMC2.NextSubtitle()
                </Action>
            </Macro>
            <Macro Name="XBMC2: ShowSubtitles" id="262">
                <Action>
                    XBMC2.ShowSubtitles()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Piste audio">
            <Macro Name="Piste son suivante">
                <Event Name="AtiRemoteWonder2.Stopwatch" />
                <Action>
                    XBMC2.AudioNextLanguage()
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Computeur Shut Down">
            <Macro Name="Forced: Turn Off Computer" id="269">
                <Action>
                    EventGhost.ShowOSD(u'Computer Shut Down', u'0;-96;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, False)
                </Action>
                <Action>
                    System.PowerDown(True)
                </Action>
            </Macro>
            <Macro Name="If button is held down 2.0 sec, go to: Forced: Turn Off Computer">
                <Event Name="AtiRemoteWonder2.Power" />
                <Action>
                    EventGhost.JumpIfLongPress(2.0, XmlIdLink(269))
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="Json">
        <Macro Name="XBMC2: JSONRPCEventsConnect" Expanded="True">
            <Event Name="Task.Created.XBMC" />
            <Event Name="Task.Activated.XBMC" />
            <Action>
                XBMC2.JSONRPCEventsConnect()
            </Action>
            <Action>
                XBMC2.HTTPAPI(u'SetBroadcast', u'2', 5, True)
            </Action>
        </Macro>
    </Folder>
    <Folder Name="Monitor Switching" id="281" Enabled="False" Expanded="True">
        <Macro Name="Set monitor into power-off mode">
            <Event Name="XBMC2.Player.OnPlay.song" />
            <Event Name="XBMC2.Player.OnPlay.unknown" />
            <Action>
                System.MonitorPowerOff()
            </Action>
        </Macro>
        <Macro Name="Re-enable monitor">
            <Event Name="XBMC2.Player.OnStop" />
            <Event Name="XBMC2.Player.OnPause.song" />
            <Event Name="XBMC2.Player.OnStop.song" />
            <Event Name="XBMC2.System.OnQuit" />
            <Action>
                System.MonitorPowerOn()
            </Action>
        </Macro>
    </Folder>
</EventGhost>
