Jump to content
Software FX Community

dijikul

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About dijikul

  • Rank
    Newbie
  1. 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)
  2. 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!
  3. I've managed to make this work, but it depends. How are you creating your gadgets? With the PowerGadget creator I have, it doesn't write the proper XML tags required for it to pickup the Color property you feed it with PowerShell, however I have some older gadgets that I've been copy and pasting the code with. It basically works like this: You create an object in PowerShell that you store the gadget's properties in. I use basic digital gauges that have the Stat, and the Color. You first pull your data with PowerShell, then run it through some if statements to determine what you want to set your Color property to, using the add-member cmdlet to add it to your object. With the older version of PowerGadgets, it appears you could just write-output $PowerGadgetObject and it would work, but now as mentioned earlier, with my creator, I'm unable to create the required XML tags within the PGF file without manually edits to the text.
×
×
  • Create New...