Jump to content
Software FX Community

MarcoS

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MarcoS

  • Rank
    Newbie
  1. I saw a posting last week in the forums HERE. The poster is looking to find out if they can plan sounds in a gadget when the data or value changes. One thing to remember when dealing with gadgets, and their refresh option, is that you
  2. Try using scriptblocks to load the values: http://community.softwarefx.com/blogs/powergadgets_team_blog/archive/2007/02/23/Connecting-to-CSV-data-from-PowerGadgets.aspx In the end, having the quotes around the numerical values, could cause an issue at first glance. You want strings to simply be VALUE, yet numerical values to be represented as "NUMBER". The simple fact that you're quoting the numerical values would have led me to think PowerShell/PowerGadgets would have forced this to be recongnized as a string, but I guess I'm wrong. WorkOnChartPrint.zip
  3. Something that has come up quite a bit is people asking how they can possibly hide senstive information in their PowerGadgets files. When you use the PowerGadgets Creator, your gadget is saved in a .pgf file extension which is basically XML formatted data. Here's an example where I've extracted one particular section of the .pgf XML: <Window> <GadgetVersion>1</GadgetVersion> <ValueFieldCount>1</ValueFieldCount> <ValueField0>Latitude</ValueField0> <Data>PowerGadgets.Commands.PowershellSource</Data> <Data.PrevCommands>
  4. A lesser known cmdlet is get-credential, which allows one to create a credential object containing a username and password. A lot of cmdlets, that might somehow require some kind of authentication, support the credential parameter, which will use this credential object. Some examples of cmdlets that support the credential parameter are invoke-sql and invoke-webservice. One way of using the credential object is to do something like this: PSH>$cred=get-credential A window will popup asking for your username and password. Once you have the $cred variable, you would use it like this to
  5. Last week, I blogged about creating a stock ticker with out-gauge. This week, I'm going to do a flashing display. My script will open up a digital type gadget, text will basically flash for about 5 seconds, then remain constantly on the screen. --------------start flash.ps1--------------- #We change the $erroractionpreference here. If this is the first time this runs, when the new runspace is invoked, an error could occur. #This may not be the best solution... $erroractionpreference="silentlycontinue" #We create a function to determine if the current tick value is even or odd. This i
  6. One thing I asked for recently on the community forums was a stock ticker gadget. It just sounded like something interesting to have in my toolbox. After some thought after a recent long flight, I thought of an easy way this could be done. I just needed to create a string of text, and figure out how to make it appear to move. One easy way was using the Substring() method of the System.String class. The code is pretty easy once you think about it, which you should be able to just copy and paste into your favorite PowerShell editor (mine is Notepad): ---------start scroll.ps1--------- #We
×
×
  • Create New...