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.

press more times on button

If you have a question or need help, this is the place to be.
Post Reply
THX-UltraII
Experienced User
Posts: 52
Joined: Tue Feb 24, 2009 7:40 am

press more times on button

Post by THX-UltraII »

I use Media Player Classic with my Logitech Harmony Remote controller and I use Eventghost. In MPC I can assign THREE different (fast)forward shortcuts. At this moment I configured SIX buttons on my remote as follows:

button 1 = forward x2
button 2 = forward x8
button 3 - forward x30
button 4 = rewind x2
button 5 = rewind x8
button 6 = rewind x30

Is it also possible with EG to config only TWO button so that when I press button 1 one time MPC forwards x2, when I then press it another time MPC forwards x8 and when I press it another time again it forwards x30? And this also for the rewind button of course.

If this is possible, how do I exactly do this?
User avatar
Neytrino-OnLine
Experienced User
Posts: 99
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: press more times on button

Post by Neytrino-OnLine »

It looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1610">
    <Folder Name="Example" Expanded="True">
        <Macro Name="forward">
            <Event Name="Harmony Forward Button Pressing Event" />
            <Action id="2044">
                EventGhost.NewJumpIf(XmlIdLink(2040), 2, False)
            </Action>
            <Action id="2045" Enabled="False">
                EventGhost.NewJumpIf(XmlIdLink(2041), 2, False)
            </Action>
            <Action id="2046" Enabled="False">
                EventGhost.NewJumpIf(XmlIdLink(2042), 2, False)
            </Action>
        </Macro>
        <Macro Name="x2" id="2040">
            <Action>
                EventGhost.DisableItem(XmlIdLink(2044))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(2045))
            </Action>
            <Action>
                EventGhost.ShowOSD(u'x2', u'0;-40;0;0;0;700;0;0;0;204;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
            </Action>
        </Macro>
        <Macro Name="x8" id="2041">
            <Action>
                EventGhost.DisableItem(XmlIdLink(2045))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(2046))
            </Action>
            <Action>
                EventGhost.ShowOSD(u'x8', u'0;-40;0;0;0;700;0;0;0;204;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
            </Action>
        </Macro>
        <Macro Name="x30" id="2042">
            <Action>
                EventGhost.DisableItem(XmlIdLink(2046))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(2044))
            </Action>
            <Action>
                EventGhost.ShowOSD(u'x30', u'0;-40;0;0;0;700;0;0;0;204;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
            </Action>
        </Macro>
    </Folder>
</EventGhost>
Replace ShowOSD's with yours MPC "forward x*" actions...
Sin┬®erely yours, Neytrino.
Post Reply