Jump to content
Software FX Community

valdezdj

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by valdezdj

  1. Ok that solution you posted on powershellcommunity.org worked great. Thanks!
  2. I'm getting this error in Powershell as soon as I try to add the Powergadgets snapin. Add-PSSnapin : Cannot load Windows PowerShell snap-in PowerGadgets because of the following error: The Windows PowerShell snap-in module C:\Program Files\PowerGadgets\PowerGadgets.Commands.dll does not have required Windows PowerShell snap-in strong name PowerGadgets.Commands, Version=1.0.2769.24553, Culture=neutral, PublicKeyToken=a1878e2052c08dce Maybe its just an update. The PowerGadgets Creator version I have is: 1.0.2760.16652 Thanks,valdezdj
  3. Actually I had to change the font to the same for all objects and it worked. I created it on an XP machine and it is presented on an XP machine so I know that wasn't it. So thanks for the tip I'll make sure that all my gadgets have the same font.
  4. I've created a gadget that consists of 2 digital panels and one radial gadget. Everything looks fine on my computer that I created it on, but when I run it on other computers that just have the presenter it gives an error on the third radial gadget. The error is:Unhandled Exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Failed to import gauge template, please make sure the template is well formed and corresponds to the gauge type you are using. Details Continue Quit ???Not sure what this means but looks like a bug in the application. If I click Continue the gadget just hangs and doesn't show the third gadget. Let me know if you need more information. Thanks.
  5. Not sure why you are getting the error. But to get rid of it try: get-process | select name, CPU, TotalProcessorTime -ea silentlycontinue | sort TotalProcessorTime | out-chart -Values CPU -Label Name -title "Process CPU Time" This is just an erroraction that tells the error not to show up. You can also put in a -refresh 00:00:01 and the error will not show up. HTH,valdezdj
  6. Ok got it. Sorry for being so much trouble and for being such a user. It reminds me of that song... "I want it all" ha ha.Thanks,D
  7. Ok...Finally!!! I found out why there was nothing being displayed when I ran the script. It's because for some reason PowerGadgets will not display text in a SevenSegments style. I had to go into the creator and copy and paste my script and it was showing up. But when I changed it to SevenSegments(its FourteenSegments by default) nothing was showing up. So there you go, just one of those things that drives you crazy when you can't figure it out. So anyways you can use fourteensegments or LED whichever you decide. One more question is there any way to set a speed for the ticker? If not don't worry about it just thought. Thanks for all your help!
  8. Sorry took me so long to reply, I've been working on other things. I did run it in the Powershell console and I put in the text but it still doesn't show anything at all. I mean if you want to edit your script to work with read-inputbox, that would be nice but whatever you want to do. I'm just glad your helping me out to this extent. The read-inputbox is just alittle fancier than the Powershell console and its more user friendly. Thanks,D
  9. Still nothing, I'm getting the same results as my original script. Its just a blank gadget with nothing there. Am I supposed to get an input box or something??? How does it know what I want to scroll? Sorry taking so much of your time, thanks for the help.
  10. Marco,Yeah I took out the refresh because it kept prompting me for an input box for however many seconds or minutes I set it to. Also, I wanted to put a input box for our staff to run the gadget and enter text based on present events. I don't really need it to refresh because, i.e., whenever we have an outage, we want to put in text to scroll for staff to see it. We have a large LCD TV setup so staff can see what's going on at that time. Thanks for the help I haven't tried using your last script that you just posted but I just wanted to reply back to your first post. Thanks for the help. valdezdj
  11. I read the blog on the stock ticker and thought I would try to create some kind of scrolling text. But when I added a few different things, there would be at times where nothing would show up and other times when the first three letters would show but then just stop. Anyways here's my script and please help. Add-PSSnapin PowergadgetsAdd-PSSnapin PrimalToys#We setup a global variable here. Global because we are going to use the -refresh parameter#and need the variable to be available in the new PowerShell runspace created. #The value is 7 in this case simply because this is how many characters we want to see on the#screen in this case. $global:scrollValue=7 #To save some typing, we create a couple of local variables also. $spacer=" "*7$string = Read-InputBox -message "Put something here." -defaultvalue "" -Title "Ticker Message" #We create are complete string. The "spacer" is used so the text appears to start from#nowhere after a short pause. $scrollString=$spacer+$string+$spacer #Here we get the section of string that we want to show on the screen during the current iteration. $scrollText=$scrollString.Substring($global:scroll_iteration,$global:scrollValue) #On each run, we increment the global iteration variable so we move along the string.#We also reset the global iteration value to zero, so the scroll goes on indefinitely. if ($global:scroll_iteration -lt $scrollString.length-$global:scrollValue) { $global:scroll_iteration++ } else { $global:scroll_iteration=0} #The final text outputted. $scrollText|out-gauge -type digital -floating -topmost -Appearance_OffDigitTransparency 0 -Appearance_Color Black -Style 3 -Appearance_Style SevenSegments05 -Border_InsideColor WhiteThanks in advance and I'm using PrimalScript Pro for all my scripting.
  12. Sorry but on second thought, how did you make the gadget clickable? I know you said that you would do a blog on this so if you are then I'll just wait for that.
  13. Very nice! Is there anyway to change the location from C:\ to a certain folder? I don't keep all of my scripts in the C: folder. Thanks, D
  14. Cool got it thanks. It works now with the colors. So I have another question, man if I could pay you I would. Ok, so how do I get the results to automatically show up in the DataLicense.ps1. Since I'm pulling from an SQL database, I've tried a few things but they didn't work. I tried to set a variable to the invoke-sql statement and then on the buildobject I put the variable there to post the results but that had many errors. I need these results to be dynamic instead of static. I don't care about purchase for now but i do care about in use. Thanks man, I really appreciate your help.
  15. JuanC, Very good, very nice! But I am getting one error, it says Property -series not found. It still displays the chart but there are not red, yellow, or green, I'm wondering if its because of this error. Maybe because I don't have the latest service pack??? If that's the case then I'll just wait for it to be released. Thanks.
  16. Thanks JuanC for the script but this is what I have as a gadget and I don't need two columns, I guess the title of the original post is incorrect. I've attached a picture of the gadget. So what I'm looking for is, when I put a number of maximum licenses that we have purchased for each of the columns then they should change colors as they are getting closer to the maximum number. If one of the columns gets within let's say 5 then it should turn red, if one of the columns get within 10 then yellow and anything below that should be green. As you can see I have them as multiple colors for right now until I or someone else can figure out how to do this. I hope this makes more sense. I'm pulling from a SQL server to get these numbers automatically but I just want the max number of licenses to be manual. Thanks for all the help.
  17. Sorry its a bit confusing. I already have the chart created (PowerGadgets Creator) and so I have 12 bars that display a number of software installs and the type of software for each bar. For example, I have Flash is one bar and then MS Project is another with the number of installs that we have here. What I want to do is have a conditional statement for each bar depending on the number of licenses that we have purchased and the number of installs. So if we have 90 licenses of Flash and we have 65 installs then the bar would be green but if it went up to lets say 80 then the bar would turn yellow and if it hit 90 or above the bar would be red. But it would be different for each bar because we purchase different amounts of licenses. I hope this clears things up. And maybe I just need to do it in the PowerShell environment. Let me know. Thanks,valdezdj
  18. Is there any way to overlap or combine conditional statements? Here's the situation, I have bar chart and I would like to segregate each bar and then have conditional values for each one. So, we are tracking software licenses and each software has a max number of licenses. Each bar is a type of software so I would like to set each bar to a certain condition varying on the number of licenses that we have purchased. Thanks for the help in advance.
  19. Ok... I'm really not going crazy but somehow all of a sudden it just fixed itself to way I want it to look. ??? Sorry for the post.
  20. Hey everybody,I'm pretty new to PowerGadgets and PowerShell, but I have been creating gadgets for a few weeks now but I've been stumped on a chart that it supposed to display two lines by date and no. of tickets and the two lines one red and one blue for opened and closed tickets. But the chart is giving me one line and separating the values by opened and closed, instead of two lines, one for open and one for closed. When I try to go to "Adjust Data to Chart" I put in my three data columns to be used and hit Next and I want No. of Tickets on the Y and Date on X and it gives me an option to do that but when I select that it gives me three lines with random data (I have no idea where these numbers are coming from) and it just says Status 0, Status 1, Status 2, instead of Open, Closed and the on the X axis it just says Week 1, Week 2, so on, and so on, instead of actual dates. I'm really lost on this one but if anyone can help that would be appreciated. If any more explanations on what I'm doing would help please let me know so that I can clarify some things. Thanks, valdezdj
×
×
  • Create New...