Boolean263 / EventGhost-TrayTip

EventGhost plugin to show Windows system tray messages.
9 stars 2 forks source link

EventGhost-TrayTip

This program is not very useful on its own. It's a plugin for EventGhost. EventGhost is an automation tool for MS Windows which listens for events -- whether user-triggered (like the press of a hotkey) or system events (such as the screensaver activating) -- and runs actions you specify. (It's like Tasker for Android, or Cuttlefish for Ubuntu.)

Description

TrayTip is an action plugin (mostly) for EventGhost. It lets you add an action to your macros that shows a pop-up message in the Windows notification area. This message is mostly useful for informing the user of something, but you can also click it to generate an event.

Usage

Adding a TrayTip action to your EventGhost macro is no different from most other actions. The configuration dialog prompts you for several items:

The title, message, event suffix, and payload are parsed for python code wrapped in {curly braces}. If you want to include an actual curly brace, you need to double it up, as in "{{".

You can also call eg.plugins.TrayTip.ShowTip(title, msg, event_name, payload, iconOpt, sound) directly from a python script action if you wish. The event name and payload are still optional, and the payload doesn't have to be a string (but is only parsed for python if it is a string). If iconOpt and sound aren't specified, they respectively default to the EventGhost icon and sound enabled.

This plugin can generate four different types of event for each notification shown. In all cases, the event will have the payload you specified, which can be accesseed from an action by using eg.event.payload.

Although the event suffix is technically optional, you should generally give a suffix to each of your TrayTip actions. This way, when an event is triggered, you can easily tell which action caused it by checking the name in the event.

Before version 0.2.0, there was no event name option, and the only way to tell which action generated which tray tip was to check the event payload. This is no longer the case, but the payload field remains in case it is useful.

Downloads and Support

Official releases of this plugin are being made available at this thread on the EventGhost forums. You can also provide feedback and request support there.

I also accept issues and pull requests from the official GitHub repo for this project, Boolean263/EventGhost-TrayTip.

Future Improvements

It would be really useful to create notifications that persist in the Windows 10 Action Center. I haven't found information on how to do that yet.

I'm told you can add buttons to notification pop-ups. That'd be cool too, if I can learn how to make that happen.

Authors

Changelog

v0.2.1 - 2020-03-28

v0.2.0 - 2017-09-05

v0.1.2 - 2017-09-03

v0.1.1 - 2017-09-03

v0.1.0 - 2017-09-02

v0.0.1 - 2017-08-21