dijikul Posted September 13, 2012 Report Share Posted September 13, 2012 We purchased PowerGadgets via ConnectSMART, and with it came a bunch of pre-populated gadgets. In some of these gadgets, there are dynamic color-changing PowerShell if statements that write out to the Color property of the PowerGadget object. In order for this to work, however, the following code is required for this to function _without_ piping the data to out-gauge.... I find this method cleaner and requiring less files, however I can'f find any documentation anywhere on what the namespace should be for these XML tags. currently, when creating new gadgets, I need to copy and paste the XML from the gadget where this works into the gadget where it doesn't, and even more so, if I edit the file in PG Creator and then re-save, it strips this XML... The XML Tag I'm talking about is this, found within the Tag near the end: 1 appearance_color $_.Color Thanks! Quote Link to comment Share on other sites More sharing options...
dijikul Posted September 13, 2012 Author Report Share Posted September 13, 2012 I guess the forum parsed out the XML... Here's that tag, without the brackets: (Data.PropertyCount)1(/Data.PropertyCount) (Data.Property0)appearance_color(/Data.Property0) (Data.Property0ScriptBlock)$_.Color(/Data.Property0ScriptBlock) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.