It is currently October 13th, 2024, 12:10 am

Plugin TrayIcon

Share and get help with Plugins and Addons
User avatar
death.crafter
Rainmeter Sage
Posts: 1398
Joined: April 24th, 2021, 8:13 pm

Plugin TrayIcon

Post by death.crafter »

Get your skin it's own place in the notification tray!

Preview:
Cilck to animate
ezgif.com-gif-maker.gif
Options:
  • IconName: The icon showed in the tray icon. ⚠️Only icon files (.ico) are accepeted!. Small icons are recommended.
  • ToolTipText: The text that the tool tip shows on mouse over on tray icon.
  • LeftMouseUpAction: Bang to be executed when the tray icon is left clicked.
  • RightMouseUpAction: Bang to be executed when the tray icon is right clicked.
Usage:

Code: Select all

[MeasureTray]
Measure=Plugin
Plugin=TrayIcon
; Only .ico files
IconName=path\to\icon.ico
ToolTipText=TrayIcon Plugin Example
LeftMouseUpAction=[!ToggleFade]
RightMouseUpAction=[!SkinMenu]
;needed if you want tooltip or icon to be dynamic
DynamicVariables=1
Limitations:
  • Only one tray icon can be created for one skin.
  • Only icon(.ico) files can be used as tray icon.
Example Skin:
https://github.com/deathcrafter/PluginTrayIcon/releases/latest

Github Repo:
https://github.com/deathcrafter/PluginTrayIcon
Don't forget to give a star!
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5540
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Plugin TrayIcon

Post by eclectic-tech »

Pretty cool! 8-)

I hate the blinking icon :twisted: , but the ability to interact through a notification icon could be useful. :thumbup:
User avatar
death.crafter
Rainmeter Sage
Posts: 1398
Joined: April 24th, 2021, 8:13 pm

Re: Plugin TrayIcon

Post by death.crafter »

eclectic-tech wrote: February 7th, 2022, 2:38 pm Pretty cool! 8-)

I hate the blinking icon :twisted: , but the ability to interact through a notification icon could be useful. :thumbup:
I couldn't find a better example of showing the things it could do :rolmfao:

A perfect example of it's usage: YourMixer OSD App Volume Mixer
I don't know what OSD means lol
from the Realm of Death
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5540
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Plugin TrayIcon

Post by eclectic-tech »

death.crafter wrote: February 7th, 2022, 6:55 pm I couldn't find a better example of showing the things it could do :rolmfao:

{clip!}
I don't know what OSD means lol
OSD = On Screen Display :D

I was wondering if you could add other mouse actions to the plugin's capabilities; middle mouse up, scroll up, and scroll down? I have a project in mind that could use your plugin with those added abilities... :sly:

I tried to build the plugin but did not have #include "PluginHotInput.h" required by your source code. :(
User avatar
death.crafter
Rainmeter Sage
Posts: 1398
Joined: April 24th, 2021, 8:13 pm

Re: Plugin TrayIcon

Post by death.crafter »

eclectic-tech wrote: February 11th, 2022, 1:53 am OSD = On Screen Display :D

I was wondering if you could add other mouse actions to the plugin's capabilities; middle mouse up, scroll up, and scroll down? I have a project in mind that could use your plugin with those added abilities... :sly:

I tried to build the plugin but did not have #include "PluginHotInput.h" required by your source code. :(
I have build instructions if you have missed it. The header file is in src folder.

Also, sure, I'll try to add it in next few days. I got exams coming, or I would have added it today.
from the Realm of Death
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5540
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Plugin TrayIcon

Post by eclectic-tech »

death.crafter wrote: February 11th, 2022, 5:05 am I have build instructions if you have missed it. The header file is in src folder.

Also, sure, I'll try to add it in next few days. I got exams coming, or I would have added it today.
I don't do much building from source code and must have missed that. Thanks D.C.

No hurry, good luck on your exams! :great:
User avatar
death.crafter
Rainmeter Sage
Posts: 1398
Joined: April 24th, 2021, 8:13 pm

Re: Plugin TrayIcon

Post by death.crafter »

eclectic-tech wrote: February 11th, 2022, 1:18 pm I don't do much building from source code and must have missed that. Thanks D.C.

No hurry, good luck on your exams! :great:
https://github.com/deathcrafter/PluginTrayIcon/releases/tag/1.1.0.0

there you go :D
from the Realm of Death
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

Re: Plugin TrayIcon

Post by Judian81 »

death.crafter wrote: February 12th, 2022, 9:47 am there you go :D
hey hello,

i am testing your skin and found out one bug. when i load the skin it will be oke.
the system tray will be blinking.

but when i use the menu to refresh all the skins on that moment the blinking stoped.
User avatar
Active Colors
Moderator
Posts: 1318
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Plugin TrayIcon

Post by Active Colors »

Judian81 wrote: February 14th, 2022, 11:24 am hey hello,

i am testing your skin and found out one bug. when i load the skin it will be oke.
the system tray will be blinking.

but when i use the menu to refresh all the skins on that moment the blinking stoped.
Can you post your code?
Additionally, it will be helpful if you can record the issue in action and post it here too (for example using free small portable app GifCam).
User avatar
Active Colors
Moderator
Posts: 1318
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Plugin TrayIcon

Post by Active Colors »

After running the test skin for some time:

1) Rainmeter starts producing visual glitches that spread to various parts of Windows and/or other Rainmeter skins.
2) Rainmeter and/or skins become unresponsive.
3) The tray icon becomes invisible (the tray element is there but the graphical icon is invisible)

I am not sure if this is related to the problem which Judian81 has. There are some differences between Judian81 and my case.
For Judian81 it happens after the Refresh all and the tray icon stops blinking. For me it happens simply after some time and the tray icon becomes invisible.

Anyhow, I am now trying the test skin again but with the modified code to make tray icon not change every second. In my case it could be due to the every second changing icon. I am also running Windows 7 Professional 64-bit at the present moment.

Couple of visual glitches attached.
You do not have the required permissions to view the files attached to this post.