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.

How to toggle plugins?

If you have a question or need help, this is the place to be.
Post Reply
boxstar99
Posts: 2
Joined: Sat Apr 18, 2009 7:26 pm

How to toggle plugins?

Post by boxstar99 »

hi i'm loving this program! but i wish i knew how to toggle certain plugins w/ the same button

button (if these are enabled):
disable: plugin: multitap
disable: plugin: keyboard

button (if these are disabled):
enable: plugin: multitap
enable: plugin: keyboard
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: How to toggle plugins?

Post by jinxdone »

You can take it one step further and use the enable disable actions to essentially create the toggle button. Like so..

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="851">
    <Folder Name="Enable/Disable toggle button example" Expanded="True">
        <Macro Name="Enable" id="1654" Expanded="True">
            <Event Name="ACTION" />
            <Action>
                EventGhost.EnableItem(XmlIdLink(1645))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(16))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(1653))
            </Action>
            <Action Name="Disable: Enable">
                EventGhost.DisableItem(XmlIdLink(1654))
            </Action>
        </Macro>
        <Macro Name="Disable" id="1656" Expanded="True">
            <Event Name="ACTION" />
            <Action>
                EventGhost.DisableItem(XmlIdLink(1645))
            </Action>
            <Action>
                EventGhost.DisableItem(XmlIdLink(16))
            </Action>
            <Action>
                EventGhost.EnableItem(XmlIdLink(1654))
            </Action>
            <Action Name="Disable: Disable">
                EventGhost.DisableItem(XmlIdLink(1656))
            </Action>
        </Macro>
    </Folder>
</EventGhost>
boxstar99
Posts: 2
Joined: Sat Apr 18, 2009 7:26 pm

Re: How to toggle plugins?

Post by boxstar99 »

thanks! simple and works perfectly
Post Reply