Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Reihenfolge von Ereignissen bei mehrfachem Tastendruck

Allgemeines zum Thema EventGhost
Post Reply
User avatar
scirocco790
Posts: 4
Joined: Fri Aug 08, 2008 5:54 am
Location: Oberfranken!

Reihenfolge von Ereignissen bei mehrfachem Tastendruck

Post by scirocco790 »

Wie kann mann das machen? Ich m├Âchte auf eine Taste quasi das umschalten von verschiedenen "Fernbedienungsprofilen" legen.
Beispiel:
1x dr├╝cken = Fernbedienung ist f├╝r Winamp belegt
2x dr├╝cken = Fernbedienung ist f├╝r andere Software belegt
3x drücken = Fernbedienung geht wieder auf Winamp bzw. fängt Cycle von vorn an

Danke,
Peter
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Reihenfolge von Ereignissen bei mehrfachem Tastendruck

Post by Bartman »

Ich hab das hier mal für drei Farbprofile beim ZoomPlayer gemacht. Ist denke ich verständlicher, als wenn ich versuche das zu erklären.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1430">
    <Folder Name="Color Preset">
        <Macro Name="Set Color Control Preset: 1" id="823" Enabled="False">
            <Event Name="MediaNum1" />
            <Action>
                ZoomPlayer.exOverlayColor(u'1')
            </Action>
            <Action>
                EventGhost.DisableItem(XmlIdLink(823))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(829))
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Macro Name="Set Color Control Preset: 2" id="829">
            <Event Name="MediaNum1" />
            <Action>
                ZoomPlayer.exOverlayColor(u'2')
            </Action>
            <Action>
                EventGhost.DisableItem(XmlIdLink(829))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(835))
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
        <Macro Name="Set Color Control Preset: 3" id="835" Enabled="False">
            <Event Name="MediaNum1" />
            <Action>
                ZoomPlayer.exOverlayColor(u'3')
            </Action>
            <Action>
                EventGhost.DisableItem(XmlIdLink(835))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(823))
            </Action>
            <Action>
                EventGhost.StopProcessing()
            </Action>
        </Macro>
    </Folder>
</EventGhost>
User avatar
scirocco790
Posts: 4
Joined: Fri Aug 08, 2008 5:54 am
Location: Oberfranken!

Re: Reihenfolge von Ereignissen bei mehrfachem Tastendruck

Post by scirocco790 »

Tausend Dank! Habs zusammenbekommen. Geht!
Post Reply