Jump to content
Software FX Community

valdezdj

Members
  • Posts

    21
  • Joined

  • Last visited

valdezdj's Achievements

Newbie

Newbie (1/14)

0

Reputation

  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.
×
×
  • Create New...