<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1582" Guid="{1E51F778-A0A6-477F-9922-FF493CB375E6}" Time="1347732103.2">
    <Action Name="Check if XBMC is minimized">
        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>
    <Autostart Name="Autostart">
        <Plugin Identifier="AtiRemoteWonder2" Guid="{74DBFE39-FEF6-41E5-A047-96454512B58D}" File="AtiRemoteWonder2WinUsb">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="XBMC2" Guid="{8C8B850C-773F-4583-AAD9-A568262B7933}" File="XBMCRepeat">
            gAJYCQAAADEyNy4wLjAuMXEAWAIAAAA4MHEBhnECLg==
        </Plugin>
        <Action>
            EventGhost.EnableItem(XmlIdLink(37))
        </Action>
        <Action>
            EventGhost.DisableItem(XmlIdLink(32))
        </Action>
        <Action>
            System.ChangeDisplaySettings(1, (1920L, 1200L), 60L, 32L, True, False)
        </Action>
        <Action>
            EventGhost.EnableItem(XmlIdLink(12))
        </Action>
        <Action>
            EventGhost.DisableItem(XmlIdLink(226))
        </Action>
    </Autostart>
    <Folder Name="Principal" Expanded="True">
        <Folder Name="XBMC" id="12" Expanded="True">
            <Folder Name="XBMC - Maximize / Minimize">
                <Folder Name="Test Full screen">
                    <Macro Name="Python Script - Test full screen">
                        <Event Name="AtiRemoteWonder2.A" />
                        <Action>
                            System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\Son 1.wav', 1)
                        </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(26), 0, False)
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(21), 1, False)
                        </Action>
                    </Macro>
                </Folder>
                <Macro Name="Minimise XBMC.exe" id="21" Expanded="True">
                    <Action>
                        Window.FindWindow(u'XBMC.exe', None, None, None, None, None, False, 0.0, 2)
                    </Action>
                    <Action>
                        Window.SendKeys(u'{Shift+Ctrl+Alt+F1}', False)
                    </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>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
                <Macro Name="Maximise XBMC.exe" id="26" Expanded="True">
                    <Action>
                        Window.FindWindow(u'XBMC.exe', None, None, None, None, None, False, 0.0, 2)
                    </Action>
                    <Action>
                        Window.Maximize()
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Screen">
                <Folder Name="Toggle screen On / Off" Expanded="True">
                    <Macro Name="Re-enable monitor" id="32" Enabled="False" Expanded="True">
                        <Event Name="AtiRemoteWonder2.Help" />
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(37))
                        </Action>
                        <Action>
                            System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\Son 1.wav', 1)
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(45), 2, True)
                        </Action>
                    </Macro>
                    <Macro Name="Set monitor into power-off mode" id="37" Expanded="True">
                        <Event Name="AtiRemoteWonder2.Help" />
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(32))
                        </Action>
                        <Action>
                            System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\Son 1.wav', 1)
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(43), 2, True)
                        </Action>
                    </Macro>
                </Folder>
                <Folder Name="Screen States" Expanded="True">
                    <Macro Name="Set monitor into power-off mode" id="43">
                        <Action>
                            System.MonitorPowerOff()
                        </Action>
                    </Macro>
                    <Macro Name="Re-enable monitor" id="45">
                        <Action>
                            System.MonitorPowerOn()
                        </Action>
                    </Macro>
                </Folder>
            </Folder>
            <Folder Name="XBMC - On/Off">
                <Macro Name="Test présence XBMC" Expanded="True">
                    <Event Name="AtiRemoteWonder2.B" />
                    <Action>
                        EventGhost.JumpIfLongPress(1.0, XmlIdLink(61))
                    </Action>
                    <Action>
                        Window.FindWindow(u'XBMC.exe', None, None, None, None, None, False, 0.0, 2)
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(64), 0, False)
                    </Action>
                    <Action>
                        EventGhost.NewJumpIf(XmlIdLink(54), 2, False)
                    </Action>
                </Macro>
                <Macro Name="Start XBMC DSF" id="54" Expanded="True">
                    <Action>
                        System.PlaySound(u'D:\\Yvan\\Sauvegarde\\EventGhost\\Sons\\click.wav', 1, False)
                    </Action>
                    <Action>
                        Mouse.MoveAbsolute(960, 50, None, False)
                    </Action>
                    <Action Name="Start Program: XBMC.exe">
                        System.Execute(u'C:\\Logiciels\\Video\\XBMC\\XBMC.exe', u'-p -fs', 2, False, 4, u'', False)
                    </Action>
                    <Action>
                        Window.FindWindow(u'XBMC.exe', None, None, None, None, None, False, 0.0, 2)
                    </Action>
                    <Action>
                        Window.Maximize()
                    </Action>
                    <Action>
                        EventGhost.StopProcessing()
                    </Action>
                </Macro>
                <Macro Name="Arret forcé XBMC" id="61">
                    <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="64">
                    <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" Expanded="True">
                        <Event Name="AtiRemoteWonder2.Num6" />
                        <Action>
                            EventGhost.JumpIfLongPress(0.80000000000000004, XmlIdLink(87))
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(91), 1, False)
                        </Action>
                    </Macro>
                </Folder>
                <Folder Name="Skip backward" Expanded="True">
                    <Macro Name="Test appui long bouton ATI:Menu" Expanded="True">
                        <Event Name="AtiRemoteWonder2.Num4" />
                        <Action>
                            EventGhost.JumpIfLongPress(0.80000000000000004, XmlIdLink(85))
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(89), 1, False)
                        </Action>
                    </Macro>
                </Folder>
                <Macro Name="Skip Previous" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Num1" />
                    <Action>
                        XBMC2.SkipPrevious()
                    </Action>
                </Macro>
                <Macro Name="Skip Next" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Num3" />
                    <Action>
                        XBMC2.SkipNext()
                    </Action>
                </Macro>
                <Macro Name="Big Skip Backward" id="85" Expanded="True">
                    <Action>
                        XBMC2.BigStepBack()
                    </Action>
                </Macro>
                <Macro Name="Big Skip Forward" id="87" Expanded="True">
                    <Action>
                        XBMC2.BigStepForward()
                    </Action>
                </Macro>
                <Macro Name="Small Skip Backward" id="89" Expanded="True">
                    <Action>
                        XBMC2.StepBack()
                    </Action>
                </Macro>
                <Macro Name="Small Skip Forward" id="91" Expanded="True">
                    <Action>
                        XBMC2.StepForward()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Keyboard">
                <Macro Name="Info" Expanded="True">
                    <Event Name="AtiRemoteWonder2.F" />
                    <Action>
                        XBMC2.RemoteInfo()
                    </Action>
                </Macro>
                <Macro Name="Menu contextuel" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Stopwatch" />
                    <Action>
                        XBMC2.ContextMenu()
                    </Action>
                </Macro>
                <Macro Name="Show OSD" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Num0" />
                    <Action>
                        Window.SendKeys(u'm', False)
                    </Action>
                </Macro>
                <Macro Name="Up" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Up" />
                    <Action>
                        XBMC2.RemoteUp()
                    </Action>
                    <Action>
                        EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                    </Action>
                </Macro>
                <Macro Name="Down" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Down" />
                    <Action>
                        XBMC2.RemoteDown()
                    </Action>
                    <Action>
                        EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                    </Action>
                </Macro>
                <Macro Name="Left" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Left" />
                    <Action>
                        XBMC2.RemoteLeft()
                    </Action>
                    <Action>
                        EventGhost.AutoRepeat(0.80000000000000004, 0.40000000000000002, 0.080000000000000002, 3.0)
                    </Action>
                </Macro>
                <Macro Name="Right" Expanded="True">
                    <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" Expanded="True">
                    <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" Expanded="True">
                    <Event Name="AtiRemoteWonder2.ChannelDown" />
                    <Action>
                        XBMC2.ZoomOut()
                    </Action>
                    <Action>
                        EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.10000000000000001, 1.0)
                    </Action>
                </Macro>
                <Macro Name="Select" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Ok" />
                    <Action>
                        XBMC2.RemoteSelect()
                    </Action>
                </Macro>
                <Macro Name="Previous Menu" Expanded="True">
                    <Action>
                        XBMC2.PreviousMenu()
                    </Action>
                </Macro>
                <Macro Name="Play" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Play" />
                    <Action>
                        XBMC2.RemotePlay()
                    </Action>
                </Macro>
                <Macro Name="Pause" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Pause" />
                    <Action>
                        XBMC2.RemotePause()
                    </Action>
                </Macro>
                <Macro Name="Stop" Expanded="True">
                    <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" Expanded="True">
                    <Event Name="AtiRemoteWonder2.FastRewind" />
                    <Action>
                        XBMC2.Rewind()
                    </Action>
                </Macro>
                <Macro Name="Aspect Ratio" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Resize" />
                    <Action>
                        XBMC2.AspectRatio()
                    </Action>
                </Macro>
                <Macro Name="Full Screen" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Record" />
                    <Action>
                        XBMC2.FullScreen()
                    </Action>
                </Macro>
                <Macro Name="Cancel" Expanded="True">
                    <Event Name="AtiRemoteWonder2.C" />
                    <Action>
                        Window.SendKeys(u'{Esc}')
                    </Action>
                </Macro>
                <Macro Name="Home" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Num2" />
                    <Action>
                        Window.SendKeys(u'{Home}', False)
                    </Action>
                </Macro>
                <Macro Name="End" Expanded="True">
                    <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 +" Expanded="True">
                    <Event Name="AtiRemoteWonder2.VolumeUp" />
                    <Action>
                        XBMC2.VolumeUp()
                    </Action>
                    <Action>
                        EventGhost.AutoRepeat(0.80000000000000004, 0.29999999999999999, 0.050000000000000003, 1.2)
                    </Action>
                </Macro>
                <Macro Name="Volume -" Expanded="True">
                    <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" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Mute" />
                    <Action>
                        XBMC2.RemoteMute()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Sous titres">
                <Macro Name="Emulate Keystrokes: l" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Setup" />
                    <Action>
                        Window.SendKeys(u'l', False)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Piste audio">
                <Macro Name="Piste son suivante" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Stopwatch" />
                    <Action>
                        XBMC2.AudioNextLanguage()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Computeur Shut Down">
                <Macro Name="Forced: Turn Off Computer" id="187" Expanded="True">
                    <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" Expanded="True">
                    <Event Name="AtiRemoteWonder2.Power" />
                    <Action>
                        EventGhost.JumpIfLongPress(2.0, XmlIdLink(187))
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Playlist">
                <Macro Name="XBMC2: Playlist" Expanded="True">
                    <Event Name="AtiRemoteWonder2.DVD" />
                    <Action>
                        XBMC2.Playlist()
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Resolutions" Expanded="True">
                <Folder Name="Toggle resolution" Expanded="True">
                    <Macro Name="Change to 1920x1200@60Hz" id="199" Enabled="False">
                        <Event Name="AtiRemoteWonder2.Hand" />
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(219), 2, True)
                        </Action>
                        <Action>
                            EventGhost.ShowOSD(u'1920x1200@60Hz', 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, 5.0, False)
                        </Action>
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(204))
                        </Action>
                    </Macro>
                    <Macro Name="Change to 1280x800@51Hz" id="204" Enabled="False" Expanded="True">
                        <Event Name="AtiRemoteWonder2.Hand" />
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(215), 2, True)
                        </Action>
                        <Action>
                            EventGhost.ShowOSD(u'1280x800@51Hz', 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, 5.0, False)
                        </Action>
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(209))
                        </Action>
                    </Macro>
                    <Macro Name="Change to 960x600@60Hz" id="209">
                        <Event Name="AtiRemoteWonder2.Hand" />
                        <Action>
                            EventGhost.ShowOSD(u'960x600@60Hz', 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, 5.0, False)
                        </Action>
                        <Action>
                            EventGhost.NewJumpIf(XmlIdLink(221), 2, True)
                        </Action>
                        <Action>
                            EventGhost.EnableExclusive(XmlIdLink(199))
                        </Action>
                    </Macro>
                </Folder>
                <Folder Name="Presets resolutions" Expanded="True">
                    <Macro Name="Set Display1 to mode 1280x800@51 Hz" id="215" Expanded="True">
                        <Action>
                            System.ChangeDisplaySettings(1, (1280L, 800L), 51L, 32L, True, False)
                        </Action>
                    </Macro>
                    <Macro Name="Set Display1 to mode 1280x720@60 Hz" Expanded="True">
                        <Action>
                            System.ChangeDisplaySettings(1, (1280L, 720L), 60L, 32L, False, False)
                        </Action>
                    </Macro>
                    <Macro Name="Set Display1 to mode 1920x1200@60 Hz" id="219" Expanded="True">
                        <Action>
                            System.ChangeDisplaySettings(1, (1920L, 1200L), 60L, 32L, False, False)
                        </Action>
                    </Macro>
                    <Macro Name="Set Display1 to mode 960x600@60 Hz" id="221" Expanded="True">
                        <Action>
                            System.ChangeDisplaySettings(1, (960L, 600L), 60L, 32L, False, False)
                        </Action>
                    </Macro>
                </Folder>
            </Folder>
            <Folder Name="Alt+Tab">
                <Macro Name="Emulate Keystrokes: {Alt+Tabulator}" Expanded="True">
                    <Event Name="AtiRemoteWonder2.ATI" />
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="Choix filtre" id="226" Enabled="False" Expanded="True">
            <Macro Name="Start Program: ffdshow actif.bat">
                <Event Name="AtiRemoteWonder2.A" />
                <Action>
                    EventGhost.ShowOSD(u'ffdshow filter activ\xe9', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 0, (800, 600), 0, 3.0, True)
                </Action>
                <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>
            <Macro Name="Start Program: lav actif.bat" Expanded="True">
                <Event Name="AtiRemoteWonder2.B" />
                <Action>
                    EventGhost.ShowOSD(u'lav filter activ\xe9', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 0, (800, 600), 0, 3.0, True)
                </Action>
                <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>
        </Folder>
    </Folder>
    <Folder Name="Choix AUX">
        <Macro Name="Enable exclusive: XBMC" Expanded="True">
            <Event Name="AtiRemoteWonder2.AUX1" />
            <Action>
                EventGhost.ShowOSD(u'AUX1', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 0, (800, 600), 0, 3.0, True)
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(12))
            </Action>
        </Macro>
        <Macro Name="Enable exclusive: Choix filtre" Expanded="True">
            <Event Name="AtiRemoteWonder2.AUX2" />
            <Action>
                EventGhost.ShowOSD(u'AUX2', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 0, (800, 600), 0, 3.0, True)
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(226))
            </Action>
        </Macro>
    </Folder>
</EventGhost>
