CoolMon 2 : Events

Writing events into the CML

Events are officially supported with the release of version core 0.5.6.0, hopefully this page will help you to implementing events into your CML configs.

The event structure

In order to attach one or more events to a visual object, you must know the structure to use in order to make CoolMon 2 recognize the event.

<visual name="text">
  <parameters>
    ...
  </parameters>
  <content>
    ...
  </content>
  <events>
    <eventhandler trigger="OnMouseLeftUp">
      <action modifier="none">
        <execute>c:\windows\notepad.exe</execute>
      </action>
    </eventhandler>
  </events>
</visual>

Above example will cause notepad to open when the left mouse button is released on the visual object.

Valid trigger are


Valid Modifier keys