PowershellRM
  • PowershellRM
  • Parent Measure
  • Child Measure
  • Async Measure
  • Rainmeter API
  • Logging
  • Inline Functions
  • Bang
  • Tips and trick
    • Untitled
Powered by GitBook
On this page

Was this helpful?

Bang

You can invoke functions, cmdlets or a script block with !CommandMeasure bang.

Example Bang usage
[PSRM]
Measure = Plugin
Plugin = PowershellRM
Line = function FirstFile() { $f = Get-ChildItem .\; $RmAPI.Log($f[0].FullName) }

[Meter]
Meter = Shape
Shape = Rectangle 0,0,200,200
LeftMouseUpAction = !CommandMeasure PSRM "FirstFile"
PreviousInline FunctionsNextUntitled

Last updated 6 years ago

Was this helpful?