Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1836

Community Tips & Tricks • Windows powershell Desktop notification

$
0
0
I don't know if there's already a forum post like this; I haven't found anything similar.
So I just wanted to let you know that information from Rainmeter can also be sent to Windows via a kind of desktop notification.

Certain things could be considered for this. For example, if the CPU temperature falls within a certain range, appointment reminders, or some importend changes.

I tried this on Windows 11 and it works well. Perhaps someone else will find it useful too. :great:

Code:

[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1[Measure24HrTime]Measure=TimeFormat=%H:%M[PowershellNotification]Measure=PluginPlugin=RunCommandProgram=PowerShellParameter=-NoProfile -Command "Add-Type -AssemblyName System.Windows.Forms,System.Drawing; $n = New-Object System.Windows.Forms.NotifyIcon; $n.Icon = [System.Drawing.SystemIcons]::Warning; $n.Visible = $true; $n.ShowBalloonTip(10000, 'Its Time for a break', '[Measure24HrTime]', [System.Windows.Forms.ToolTipIcon]::Warning); Start-Sleep -Seconds 1; $n.Dispose()";exitState=HideOutputType=UTF8DynamicVariables=1UpdateDivider=-1Disabled=1[ButtonKlick]Meter=StringFontSize=14SolidColor=0,255,0,150FontColor=255,255,255Text=-Klick- Y=20 W=100LeftMouseUpAction=[!CommandMeasure PowershellNotification "Run"]DynamicVariables=1
Screenshot 2025-06-11 232445.png

Statistics: Posted by Rooky_89 — Yesterday, 7:27 pm



Viewing all articles
Browse latest Browse all 1836

Trending Articles