Congratulations to the winners from our November survey: Jerry LaMonte Paul Rogers David Hoffman These gentlemen will receive a copy of our new SAPIEN Press PowerShell V2 book. Click here to find out more. Please keep your eyes peeled for the SAPIEN year-end survey with bigger and more prizes.
Tag: powershell
PrimalForms 2009: New Packager STA Mode
Last month’s service build included a new addition to PrimalForms 2009’s packager: STA Mode (Single Thread Apartment), which allows you to perform operations that may have previously failed, such as accessing Window’s Clipboard. Some of you may have attempted to use the Clipboard in your forms only to encounter issues within PowerShell. For example, if […]
Powershell Help 2.0 Community Edition
Our Powershell Help tool has been a favorite download for quite some time now. The built-in help command in the Powershell console is helpful if you need just some quick lookup, but for browsing and reading the console just isn’t good enough. The CHM file Microsoft released is a pretty nice graphical way of getting […]
PrimalPad Community Edition update
PrimalPad has been updated to recognize all PowerShell V2 keywords and cmdlets for syntax coloring. Check your Help -> About and look at the version number, if it’s not 1.0.13 you may want to head over to our Community Tools site and download it in your color and platform of choice.
Closing the Form: What you might expect and what really happens
Recently I was contacted by one of our PrimalForms users. He commented that the behavior of a script deviated from what he was expecting. He provided me with the following script block for the Button Click Event so that I could help clear up the confusion: $handler_button3_Click={ # Check that a logfile was specified. If […]
PrimalForms 2009: Integrated Help
PrimalForms 2009 features integrated help to assist users with their form scripting. This blog covers some of its features. Help Documentation: (Fig 1: Click on the Help button or press F1 key to access the help documentation.) PrimalForms allows users to access help on any panel or window simply by pressing the F1 key. Depending […]
Writing VBScript that really runs in PowerShell
It’s quite possible to run traditional WSH script from the PowerShell console, and people have even directly hosted VBScript in PowerShell since 2004 using the Microsoft Script Control. However, you can go farther than just loading VBScript into an object in a PowerShell session and calling its methods. You can use VBScript – or any other Active Scripting language, for that matter – as a scripting language for PowerShell.
PowerShell hosting and $MyInvocation
Many PowerShell users utilize code as shown below to determine where the running script resides: function get-scriptdirectory{ $invocation=(get-variable MyInvocation -Scope 1).Value Split-Path $invocation.myinvocation.path} Unfortunately, if the script runs inside a custom host, such as PrimalScript’s internal host, for a good number of debuggers and the SAPIEN PowerShell host from the PrimalForms packager, the MyInvocation variable […]
PrimalForms 2009 goes beyond just a forms editor
We have a major service release this month for PrimalForms 2009. It features significant additions that take PrimalForms beyond just a forms editor. This service release (v1.1.0) includes the following: General PowerShell Script Editor PrimalForms 2009 is no longer limited to forms scripts. You now can create and edit your ps1 PowerShell scripts directly, making […]
Get-GuiDate: A PowerShell Calendar Tool
Forms and dialogs can augment PowerShell scripts or even resurface them completely to make them more friendly for people who aren’t familiar with the command line. In some cases, a form can even function as a complete script in and of itself. The Get-GuiDate script, developed from a prototype written with PrimalForms, is an example of a script that is completely centered around a control (the Windows.Forms.MonthCalendar control) embedded in a Windows Form.