Building GUI Applications in PowerShell - powershell

Is there a free equivalent to the Sapien Powershell Studio to build GUI applications in Powershell?

Ok, I found the solution:
There is a free community edition of Powershell studio which is called PrimalFormsCE.
http://www.sapien.com/software/freetools#PrimalFormsCE
You can build GUI applications, then export to Ps1, edit the code...
Really a good tool !

Related

Launching Visual Code .net debugger from Powershell

I am looking for a way to launch the "Run and Debug" functionality of Visual Code from an externally running PowerShell (PS) script. My project has 19 separate APIs that sometimes all need to be started together. To facilitate local development I already have a PS script that updates all my local.settings.json files depending on which services are running locally and which database I am using. It would be nice and save time if I could somehow also "reach into" Visual Code and launch the services as well.
Searching the internal for solutions has been difficult because all queries having to do with "powershell" and "Visual Code" lead to discussion of writing PS in Visual Code.
Thanks for any suggestions / directions to look / notification that this is impossible.

How to install the WASP in powershell?

I want to use WASP plug-in in powershell. Lack of knowledge about c#, I have no idea how to install it. I have downloaded the archive file from https://archive.codeplex.com/?p=wasp . I haven't found a "install" file in the zip. There is no user guide for installation on the page, either. I would like to install it from powershell. My system is windows10, 64bits. I need some help, thank you.
You can use SendKeys directly via PowerShell.
# Example, start notepad, grab all services and display in in notepad using SendKeys
Notepad
Get-Service | Clip
Start-Sleep -Seconds 1
## .NET:
[void][reflection.assembly]::loadwithpartialname("system.windows.forms")
[system.windows.forms.sendkeys]::sendwait('^v')
Yet, WASP and other tools like if are better options. However, WASP is a very old project and has not been maintained in years. I have it as do many other and used it in the past. From CodePlex, you need Visual Studio ( you can use the free community edition) to compile that into a DLL to be imported. Yet again , it's very old. So, there are other tools to use for GUI automatization vs WASP.
See:
PowerShell module to run a Selenium WebDriver.
PowerShell & Selenium: Automate Web Browser Interactions
PowerShell, Selenium and Browser Automation
AutoIt Cmdlets for Windows PowerShell
https://www.autoitscript.com/forum/topic/187775-run-powershell-script-with-autoit
https://www.autoitconsulting.com/site/scripting/autoit-cmdlets-for-windows-powershell

How do I use MATLAB in Visual Studio 2010

Is there any way to write programs in MATLAB(mex files) by using Visual Studio 2010?
If yes, then is it possible without installing MATLAB application.
You can write MATLAB programs in any tool you like that includes a text editor, including Visual Studio or just Notepad.
But to run them you need MATLAB. There is a free package called Octave that is partly compatible with MATLAB and will run many basic MATLAB programs, but not all.

What free Powershell editors can I use on Windows XP SP2?

I have Windows 7 at home with Powershell 2 and I really like the free version of the PowerGUI Powershell editor.
I'd like to start using Powershell at work but we are on version 1.o on XP with SP2. I was going to install PowerGui but
it looks like it requires some Core components or maybe even Powershell 2.0. I expect that our XP production servers may not have this version and I think it is safe to stay with 1.0 for now to avoid pushback from the keys with the keys to the production box.
My question is this:
Is there an editor like powerGui that I can use with version 1 where I do not have to install additional Powershell components that may not be present in production?
You can use all of the free and commercial editors on XP:
PowerShell Integrated Scripting Environment (ISE) ships with PowerShell V2
PowerGUI (www.powergui.org) is a great free editor with support for code folding and intellisense, and PowerPacks to make it easy to work with PowerShell by point and click
Idera makes another great editor (PowerShell Plus - www.powershellplus.com) with a strong collection of scripts that ship with it.
DevFarm makes PowerWF and PowerSE (www.powerwf.com), and editor and workflow tool for working with PowerShell
PrimalForms is an editor and tool to make UI in PowerShell, built by Sapien (www.sapien.com)
Hope this Helps
If your question is actual PowerGUI script editor (version 2.4.0) works with PowerShell V1.0. My answer is that I don't think it works. In my understanding you need a version before 2.0 . I'am using PowerGUI 1.9.5.966 which works perfectly with PowerShel V1.0.

Can I get intellisense in powershell?

Edit: Anyone coming to the question now. Please look at the dates. This is a very, very, old question from the first version of PowerShell. Everything is now different
Just starting out with PowerShell, I would love to have intellisense support for writing PowerShell scripts. Tab-completion works great so you would think it would exist somewhere, but the only thing I can find an article from 2007 - hardly up to date.
Is there an extension somewhere that gives you this ability?
How about an editor?
Try this -
http://powergui.org/index.jspa
This is a good editor with intellisense
The Windows PowerShell ISE which is installed with later versions of PowerShell has got built-in intellisense.
Also Visual Studio Code with the PowerShell extension is another option
And ISE Steroids if you want to stay with ISE
But seems direction is VS Code, especially with Core
Have a look on PowerTab.
Also PowerShell Plus (commercial). Or you can wait for PowerShell 2.0 and hopefully get Graphical Windows PowerShell.
PowerSE is a free PowerShell Editor that includes Intellisense (PowerShell, WMI, and .NET)
Features:
Includes Auto-Script creation feature - execute a cmdlet, look at the results in a grid view, select and sort columns, then tell it to generate the PowerShell for you.
Community button to search TechNet and PoshCode for samples.
Debug features such as breakpoints and stepping through code.
Watch window to drill into PowerShell variables.
Context sensitive help.
Imbedded console window with command recorder.
Try visual studio code with powershell extension. It works better than Windows PowerShell ISE for me.
PSReadline now has intellisense right in the console based on the command history. https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense/
To enable in powershell 7:
Set-PSReadLineOption -PredictionSource History
You can also get that version of psreadline in powershell 5.1.
Install-Module PSReadLine -RequiredVersion 2.1.0
I think it is the best way that you write TabExpansion.
There are no Autocomplteion tools for posh, like C#'s IntelliSence.
They can't get even $_'s properties even if you use just a standard Cmdlet.
PowerShell ISE v3 has Intellisense
http://www.microsoft.com/download/en/details.aspx?id=27548