Quantcast
Channel: ISE Addons – Ravikanth Chaganti
Viewing all articles
Browse latest Browse all 34

PowerShell ISE addon menu generator

$
0
0
This is yet another ISE addon I have been using for quite sometime. I polished it a bit so that I can share it here with you all. This addon lets you create addon menu items easily. Without this, I used to open up my ISE profile script and add the menu items manually myself. This is how the addon looks: Here is the script behind this addon. function New-ISEMenu { ######################################################################## # Code Generated By: SAPIEN Technologies PrimalForms (Community Edition) v1.0.9.0 # Generated By: Ravikanth Chaganti ######################################################################## #region Import the Assemblies [reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null [reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null #endregion #region Generated Form Objects $form1 = New-Object System.Windows.Forms.Form $checkBox1 = New-Object System.Windows.Forms.CheckBox $button2 = New-Object System.Windows.Forms.Button $button1 = New-Object System.Windows.Forms.Button $textBox3 = New-Object System.Windows.Forms.TextBox $label3 = New-Object System.Windows.Forms.Label $textBox2 = New-Object System.Windows.Forms.TextBox $label2 = New-Object System.Windows.Forms.Label $textBox1 = New-Object System.Windows.Forms.TextBox $label1 = New-Object System.Windows.Forms.Label $InitialFormWindowState = New-Object System.Windows.Forms.FormWindowState #endregion Generated Form Objects #---------------------------------------------- #Generated Event Script Blocks #---------------------------------------------- $button1_OnClick= { if ($textBox1.Text) { $addonName = $textBox1.Text.ToString() } else { [System.Windows.Forms.MessageBox]::Show("You must supply all parameters") return } …

Viewing all articles
Browse latest Browse all 34

Trending Articles