Tray Icon Application
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Tray Icon Application
I'd like to write a script that would display basic system info in a tooltip when a user hovers over an icon in the tray. I've built this script without Powershell Studio. The trouble I'm having is building it in PS Studio to only show in the tray and not the taskbar. I also would like to add some right click functionality such as "send email with this info". Has anyone done anything like this before? Even a good jumping off point would be welcome.
Re: Tray Icon Application
Also I have read the post here https://www.sapien.com/blog/2017/07/10/ ... owershell/ but it would nice to add some items to the context menu.
Re: Tray Icon Application
I don't have any examples but the documentation is here:
https://msdn.microsoft.com/en-us/librar ... yIcon.aspx
If you search you will find hundreds of examples.
https://msdn.microsoft.com/en-us/librar ... yIcon.aspx
If you search you will find hundreds of examples.
Re: Tray Icon Application
I found an old demo of the NotifyIcon that shows pretty near all techniques for displaying an icon. The behavior is partly controlled by the version of your OS so keep that in mind.
- Attachments
-
- Demo-IconNotify.psf
- (56.05 KiB) Downloaded 235 times