You have created the mother of all PowerShell scripts and spent endless hours honing its performance and catching error conditions. Now that you are rolling out this gem of a script to your users, you find out that they don’t take to the command prompt as you do. You have also found out that some others […]
Category: Howto
Why is there a shield on my icon?
If you package your script with PrimalScript’s or PrimalForm’s packager you have the option of including a manifest. This manifest can be used to make your executable file prompt for elevation when executed. It’s easy to spot the difference between an application that will prompt for elevation and one that does not by looking at […]
How to make a default file template in PrimalScript.
When you create a new file in PrimalScript you have several options: 1. Click on the File New button in the toolbar 2. Click the little arrow next to it to create a specific type of file 3. Select File – New… and choose a specific type form the menu 4. Press Ctrl+N to create […]
PrimalForms 2011: Create an Awesome Fade In Form
Did you ever want to make your forms a little more flashy? How about creating an Awesome Fade In Form? Yeah that’s right I said Awesome! [Start Deep Voice] Everybody loves it when their forms make a smooth entrance. Ohhh Yeahhh… As opposed to the typical abrupt “here I am” way. But then again, whatever […]
Which font do you use for programming?
SAPIEN code editors usually default to “Courier New” when you install them first. The reason for that is simple: It’s installed on virtually every Windows system since Windows 98. Once in a while we get a wave of emails asking us to change that default to whatever the author prefers. Here is a brief, albeit […]
PrimalForms 2011: Creating Responsive Loops
In the PrimalForms: Preventing Multiple Button Clicks blog article, we introduced the [System.Windows.Forms.Application]::DoEvents method, which allows the application to process form events. This method also becomes very useful when you have a script that runs through a long loop. Here is a sample loop with a progress bar you may encounter in your script: $buttonProcessLoop_Click={ […]
PrimalForms: Preventing Multiple Button Clicks
A problem you may face when creating Graphical User Interfaces (GUI) is preventing users from clicking a button multiple times. It is helpful for our users to learn how to handle this situation. In the following sample, we have a button that is disabled immediately when the button is pressed and then enabled at the […]
Benchmarking Scripts: Strings
The latest build of PrimalScript 2011 has a new little toy built in. If you run a script from within PrimalScript, it will time the execution and print the elapsed time after the script has finished in the output window. While this isn’t exactly a profiler of any kind, it can be helpful to evaluate […]
Spotlight on the Form Control
The Spotlight on Controls series describes the controls, that is, the objects in the System.Windows.Forms namespace, so you can use them effectively when building GUI apps in PowerShell Studio and PrimalScript. Each post focuses on one control and lists its most important properties, methods, and events, including the default event that PowerShell Studio adds to […]
Spotlight on Controls: Common Properties and Methods
The Spotlight on Controls series is designed to teach beginning GUI developers about controls, the WinForms (System.Windows.Forms) objects that you use in a GUI application. Each article feature a different WinForms control and introduces its most frequently used properties, methods, and events. Unlike the MSDN reference pages, the examples are written in Windows PowerShell, so […]