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

Utilities and Tools • Show Desktop (ala WIN-D)

$
0
0
With the most recent 24H2 builds of Windows 11, the WIN-D functionality has been changed in such a way that when you use it to "toggle" the visibility of open windows, the Rainmeter skins are also toggled. This is new and somewhat undesirable behavior.

Until such time as a solution can be found for Rainmeter, this skin might be of some interest. Hopefully a short-term solution.

It will duplicate the WIN-D (really WIN-M / WIN-SHIFT-M) functionality of toggling all open windows, while leaving Rainmeter skins visible.
Note that there can be other windowed applications that like Rainmeter, ignore any external regular "minimize" command from Windows.

ShowDesktop_December 30, 2024.rmskin

This has two methods:

1) Click the little icon to toggle all windows.
2) Use the included HotKey plugin with a defined hotkey of WIN-SHIFT-D to toggle all windows. Feel free to redefine the hotkey as desired, but be aware that you cannot override the behavior of the built-in WIN-D key sequence.

Code:

[Rainmeter]Update=100DynamicWindowSize=1AccurateText=1[Metadata]Name=ShowDesktopAuthor=JSMorleyInformation=Duplicates the WIN-D Show Desktop functionality, Rainmeter skins stay visible | Either click the icon, or use the WIN-SHIFT-D hotkey to toggle. | Note, redefine the hotkey to anything you like. | https://github.com/brianferguson/HotKey.dll/blob/master/README.mdLicense=Creative Commons Attribution-Non-Commercial-Share Alike 3.0Version=December 30, 2024[Variables]CurrentState=0[MeasureState]Measure=CalcDynamicVariables=1IfCondition=#CurrentState# = 0IfTrueAction=[!SetOption MeterToggleDesktop LeftMouseUpAction """[!CommandMeasure MeasureMinimize "Run"]"""][!SetOption WIN-SHIFT-D KeyDownAction """[!CommandMeasure MeasureMinimize "Run"]"""]IfFalseAction=[!SetOption MeterToggleDesktop LeftMouseUpAction """[!CommandMeasure MeasureMaximize "Run"]"""][!SetOption WIN-SHIFT-D KeyDownAction """[!CommandMeasure MeasureMaximize "Run"]"""][MeasureMinimize]Measure=PluginPlugin=RunCommandProgram=PowershellParameter=$shell = New-Object -ComObject "Shell.Application";$shell.minimizeall();ExitDynamicVariables=1FinishAction=[!SetVariable CurrentState (1-#CurrentState#)][MeasureMaximize]Measure=PluginPlugin=RunCommandProgram=PowershellParameter=$shell = New-Object -ComObject "Shell.Application";$shell.undominimizeall();ExitDynamicVariables=1FinishAction=[!SetVariable CurrentState (1-#CurrentState#)][MeterToggleDesktop]Meter=ShapeShape=Rectangle 2,2,25,10,5,5 | Fill Color 255,213,10,255 | StrokeWidth 1 | Stroke Color 47,47,47,255[WIN-SHIFT-D]Measure=PluginPlugin=HotKeyHotKey=LWIN SHIFT DKeyDownAction=[]

Statistics: Posted by jsmorley — Today, 12:25 am — Replies 2 — Views 104



Viewing all articles
Browse latest Browse all 904

Trending Articles