I'm new to EventGhost as well as to the support forum. I have tried to search for guidance here, but I may just not be searching for the correct terms. Forgive me if this is a repost or duplicate.
I am trying to use EventGhost to power a status board in our IT Department. I have a couple of Macros: 1) logs into one of our monitoring tools (the dashboards aren't available without logging in first), waits an amount of time, then clicks through to several dashboards pausing in between. The last action calls an event with launches Macro 2). That macro opens another window which cycles through several different dashboard pages in iFrames.
I have installed the WebServer plugin and want to trigger an event that will cause the currently running Macro to stop executing. I found eg.StopMacro() but it appears that it needs to be called from within the running Macro. Is there a way for a Macro to kill another one? The "interrupt" event should launch a specific dashboard and stay there until the command is sent to resume the dashboard rotation -- i.e. send another event via the WebServer. The intent is to use Tasker on mobile devices to create a scene with buttons that will force the monitor to a certain dashboard and have a button to resume the rotation.
Hope that makes sense, and that I'm thinking about this the correct way. Thanks in advance for any ideas.
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.
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.
Breaking an Intentional Loop
- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Breaking an Intentional Loop
Hi,
to be honest I don't understand completely what you are trying to achieve. You could still have a look at this config which helps me to handle loops in assumable less complex situations...
to be honest I don't understand completely what you are trying to achieve. You could still have a look at this config which helps me to handle loops in assumable less complex situations...
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1700">
<Folder Name="loop" Expanded="True">
<Macro Name="Start loop" Expanded="True">
<Event Name="Event. StartLoop" />
<Event Name="Main.StartLoopAgain" />
<Action Name="This macro is just starting the loop">
EventGhost.Comment()
</Action>
<Action>
EventGhost.EnableItem(XmlIdLink(6))
</Action>
<Action>
EventGhost.TriggerEvent(u'TriggerLoopStep2', 0.0)
</Action>
</Macro>
<Macro Name="LoopStep2" id="6" Enabled="False" Expanded="True">
<Event Name="Main.TriggerLoopStep2" />
<Action Name="This is where something happens">
EventGhost.Comment()
</Action>
<Action>
EventGhost.Wait(5.0)
</Action>
<Action>
EventGhost.TriggerEvent(u'StartLoopAgain', 0.0)
</Action>
</Macro>
<Macro Name="Interrupt loop" Expanded="True">
<Event Name="Event. InterruptLoop" />
<Action>
EventGhost.DisableItem(XmlIdLink(6))
</Action>
<Action Name="and/or">
EventGhost.Comment()
</Action>
<Action>
EventGhost.FlushEvents()
</Action>
<Action Name="Clear pending Events can be malicious as it might kill other wanted processes">
EventGhost.Comment()
</Action>
</Macro>
</Folder>
</EventGhost>Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi