I figured it out, but I'll mention the problems I had.
Firstly I expected the yellow events to be executable (green arrow) if they are indeed the things that macros are triggered with.
Secondly I thought -e {blah} meant that the {}s needed to be around the blah

This complicated the fact that I couldn't figure out how to get -e to execute events because I didn't know that "Main." had to be before them. If the events were manually executable or had a properties page with their unique name, I would have figured it out right away. Instead it took time and forum reading to realize that you have to backwards engineer the names of these things: first you run the -e blah, and then you look in eventghost to see what the blah showed up as (Main.blah for instance), then you rename your events to be called Main.blah.
Now on to the good part!!
Code: Select all
<Folder Name="minimize all maximize all primary monitor toggle" Expanded="True">
<Macro Name="minimize" id="223" Expanded="True">
<Event Name="Main.min-max"/>
<Action>Window.SendKeys(u'{Win+M}', False)</Action>
<Action>EventGhost.EnableExclusive(XmlIdLink(227))</Action>
</Macro>
<Macro Name="maximize" id="227" Enabled="False" Expanded="True">
<Event Name="Main.min-max"/>
<Action>Window.SendKeys(u'{Win+Shift+M}', False)</Action>
<Action>EventGhost.EnableExclusive(XmlIdLink(223))</Action>
</Macro>
</Folder>
I wish it executed a bit faster (there is some latency before the command executes, while Show Desktop is faster and the manual key input is instant), but I am still pleased! Thanks EventGhost!
