Jump to content
Software FX Community

marco.shaw

Members
  • Posts

    249
  • Joined

  • Last visited

Posts posted by marco.shaw

  1. One thing that you must realize is that if you want to run the interactive gadget on another machine, you must have PowerGadgets installed there also.

    That being said, you can save your gadget to an image and pass that around (or copy to a server for viewing).

    I'm not up to speed on whether there are different pricing schemes for the product and whether they offer the Creator package, and a smaller lightweight "runtime only" install.  The latter would only be able to show gadgets and provide the PowerShell cmdlets (without the Creator wizard UI).

    Email support AT powergadgets DOT com if you think you might want to inquire about different pricing schemes.

  2. You may not be able to provide the SQL script, but can you show how the values are retunrned?  Just simply copy and paste how the values are outputted, and possibly add this to the end of your PowerShell command or script "|get-member".

    Using get-member allows me to see what kind of object is outputted.  It is possibly a string, but could also be some kind of SMO object (Sql server Management Object).

    Marco

  3. A couple of approaches is to determine whether there's an "ODBC" interface to your DB.  Another approach is to determine what kind of .NET functionality might be provided to access your DB (I just found this: http://sqlite.phxsoftware.com/).

    Are you willing to install any kind of 3rd party app if required?

    http://en.wikipedia.org/wiki/SQLlite says:

    "SQLite also has bindings for a large number of programming languages, including BASIC, C, C++, Common Lisp, Java, C#, Delphi, Curl, Lua, Tcl, R, PHP, Perl, Ruby, Objective-C (on Mac OS X), Python, newLisp and Smalltalk. There is also a COM (ActiveX) wrapper making SQLite accessible on Windows to scripted languages such as Javascript and VBScript. This adds database capabilities to HTML Applications (HTA).[3]"

    So, C# and COM support are probably good news for accessing these via PowerShell.

  4. It had been a few months since I had last installed PG.  I didn't remember about it getting a remote code to initialize the install.

    I discussed my plans directly with the PowerGadgets team, and it appears this would go against their EULA (well maybe not their EULA, but it wasn't considered to be a best practice), and I would very much prefer to keep my good relationship with them.  Hence, I will not provide a complete script that would copy files at a low level, etc.

    I could look into creating something that would automate all of the keystrokes required to get the product reinstalled.

    Would that work for you?

    I understand this auto-install option is available from them, but only for large volume license sales.  You may want to contact support AT powergadgets DOT com if you wish to discuss this directly with them.

    Sorry for the delay, and what I have to provide you for the long wait...

    Marco

  5. Well, I can try to find the time to try documenting the install.   There's some tools out there that may be able to log the installation process, then by creating a simple zip package and a simple install script, I'd think one could reproduce the installation "quietly".

    I'll take a look at it, but it could be 2 weeks...  Sorry, that's the best I can do... 

  6. Check out my blog postings to see how you need to implement a script to get a refresh value:

    http://community.softwarefx.com/blogs/powergadgets_guest_blog/archive/tags/guest+blogger/default.aspx

    Now, you're looking at trying to read 2 values into out-gauge, so you'll actually need to create a more complicated object with your .ps1 script.

    Let me know if you're still interested.  Sorry for the delay in replying...

    Marco 

  7. This is a good usage scenario, but can require some intermediate/expert knowledge of PowerShell and PowerGadgets.

    If you are able to provide more information, I can try to help you, but can't guarantee how long it might take to make everything work.

    Please email me directly marco.shaw _@_ gmail.com (remove the spaces and underscores).

    Marco 

  8. With the current PowerGadgets version you can't host the gadget inside some kind of Windows application.  Now, you have a possible workaround like having a monitor with your background as the map, and then placing your gadgets that way.

    Now, as for inner gauges, it has been a while since I've looked at these, but you can definitely create multiple inner gauges and each can have a different data source.

    Don't hesitate to email support AT powergadgets.com.  They may well have something new for you to possibly test. 

  9. This is will be one way this should work...

    In your first script, you will need a way to write out $_.name to a .tmp file.  Then your drilldown will have to be able to pull in the contents of the .tmp file so it can "reconstruct" $_.name basically.

    Now...  It is possible that you'll be having more than one copy of the "first script" running at once?  If so, the .tmp files could conflict when you try to drill down to more than once.

    I'm hope I'm making sense...

    I just realized though, that the .tmp file could be cleaned up as soon as it is read.  So in other words, unless you do 2 drill downs at exactly the same time, the chances of having a tmp file conflict are very minimal.

    I'll try to come up with some working code... 

     

  10. Is there an issue with you posting your entire script?  When you use refresh, there's something that happens in the background where your "gadget" basically detaches itself from the original gadget, so some things are just lost.  There is definitely a work around where we might be able to "transfer" information via a temp file, but there might also be a way to use variables to help out...

    post-5059-13922406202848_thumb.jpg

  11. Here's a couple of examples:

    http://community.softwarefx.com/forums/t/9167.aspxhttp://community.softwarefx.com/forums/t/9132.aspx

    Something I also found on my computer:

    $val=Get-WmiObject win32_Processor|%{$_.loadpercentage}$val1=(get-wmiobject Win32_Process).countout-gauge -type digital -value $val -float -innergauges_add digital `-innergauges_0_digitalpanel_value $val1

    I was almost sure I had either seen something with more details written up, but my memory is failing me.  Let me know if the above gets you going...

     

    Marco 

     

×
×
  • Create New...