Skip to content

Instantly share code, notes, and snippets.

@Clijsters
Created April 25, 2016 20:39
Show Gist options
  • Save Clijsters/b846790b925dbdd2012cefd1dc538cfb to your computer and use it in GitHub Desktop.
Save Clijsters/b846790b925dbdd2012cefd1dc538cfb to your computer and use it in GitHub Desktop.
Create Start Menu with Shell4Core (PowerShell)
#Example call for powerShell startMenu: https://github.com/Clijsters/Shell4Core/blob/master/startMenu.ps1
#This illustrates how to create and show the Shell4Core Start Menu without an AppBar
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
. '.\startMenu.ps1'
$sm = startMenu((New-Object psobject -Property @{ABE=1;left=0;Bottom=0;}))
[System.Windows.Forms.Application]::Run(($sm))
#Use the following commit without parameter type definition: https://github.com/Clijsters/Shell4Core/commit/8d498052f0095028aadf74dbdd5ab4a4789bf8a7
#License: MIT
#Copyright: Dominique Clijsters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment