It is currently May 18th, 2022, 3:37 am

Update and Redraw don't work when invoked from outside Rainmeter

Report bugs with the Rainmeter application and suggest features.
User avatar
death.crafter
Rainmeter Sage
Posts: 1364
Joined: April 24th, 2021, 8:13 pm

Update and Redraw don't work when invoked from outside Rainmeter

Post by death.crafter »

Update and Redraw bangs don't work if invoked from outside, e.g. from PowerShell.

Example:

Code: Select all

Start-Process (Get-Process Rainmeter).MainModule.FileName -ArgumentList "[!SetVariable HelloWorld 1 Hello\World]"


would work just fine, but not,

Code: Select all

Start-Process (Get-Process Rainmeter).MainModule.FileName -ArgumentList "[!SetVariable HelloWorld 1 Hello\World][!UpdateMeter Said Hello\World][!Redraw Hello\World]"
, nor,

Code: Select all

Start-Process (Get-Process Rainmeter).MainModule.FileName -ArgumentList "[!SetVariable HelloWorld 1 Hello\World][!Update Hello\World]"
Is there a reason and possible work around?
from the Realm of Death
User avatar
Brian
Developer
Posts: 2414
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Update and Redraw don't work when invoked from outside Rainmeter

Post by Brian »

Works for me. :confused:

Did you use DynamicVariables=1 where you used the #variable#?

-Brian