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.

I can add multiple actions to a event?

If you have a question or need help, this is the place to be.
Post Reply
zejio
Posts: 7
Joined: Sun Nov 09, 2008 11:34 am

I can add multiple actions to a event?

Post by zejio »

I can add multiple actions to a multiples events?

I want to disable various folders when internet explorer and firefox are closed (no only one closed)
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: I can add multiple actions to a event?

Post by topix »

Here is one way. Copy & paste it into your config tree.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1484">
    <Folder Name="Browser-check" Expanded="True">
        <Macro Name="check opened browser">
            <Event Name="Task.Destroyed.iexplore" />
            <Event Name="Task.Destroyed.firefox" />
            <Action>
                Window.FindWindow(u'iexplore.exe', None, None, None, None, None, False, 0.0, 2)
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(793), 0, False)
            </Action>
            <Action>
                Window.FindWindow(u'firefox.exe', None, None, None, None, None, False, 0.0, 2)
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(793), 0, False)
            </Action>
            <Action>
                EventGhost.ShowOSD(u'IE & FF are down', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (0, 255, 0), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
            </Action>
            <Action Name="IE and Firefox are closed, dow whatever you want">
                EventGhost.Comment()
            </Action>
        </Macro>
        <Macro Name="IE or FF is opened" id="793">
            <Action>
                EventGhost.ShowOSD(u'IE or FF is opened', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (0, 255, 0), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
            </Action>
        </Macro>
    </Folder>
</EventGhost>
zejio
Posts: 7
Joined: Sun Nov 09, 2008 11:34 am

Re: I can add multiple actions to a event?

Post by zejio »

Thx!
Sorry for my "noobness" :D but..how I can add this code to my config tree?
stisev
Experienced User
Posts: 162
Joined: Tue Jun 26, 2007 2:55 am

Re: I can add multiple actions to a event?

Post by stisev »

Copy (Control + C ) the entire contents of the "code" area (white area) and paste (CONTROL + V) into the main windows of EventGhost.
It should add all of the entries automatically after pasting.

Hot damn, Eventghost rules!
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: I can add multiple actions to a event?

Post by CollinR »

stisev wrote:Hot damn, Eventghost rules!
Agreed 8)
Windows XP Pro sp3 - Several Machines usually latest beta but who knows.
Inputs: TCP / IR (USBUIRT) / RF(X10 Remote) / CLI-Batch / CCTV Motion / Ocelot
Outputs: TCP / IR (USBUIRT) / SageTV / SageTV Clients / YAC CallerID / HAL v3.7.3 / Ocelot
zejio
Posts: 7
Joined: Sun Nov 09, 2008 11:34 am

Re: I can add multiple actions to a event?

Post by zejio »

wow!works! :o

thx! ;)
Post Reply