Giter VIP home page Giter VIP logo

dan-osull / powershell-script-menu-gui Goto Github PK

View Code? Open in Web Editor NEW
205.0 205.0 28.0 21.04 MB

Make a graphical menu of PowerShell scripts with a CSV file. Easy to customise and fast to launch.

Home Page: https://blog.osull.com/2019/11/06/tutorial-use-a-csv-file-to-make-a-graphical-menu-of-powershell-scripts/

License: MIT License

PowerShell 99.66% Batchfile 0.34%
gui menu powershell windows

powershell-script-menu-gui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powershell-script-menu-gui's Issues

Invoke-ButtonAction Error

Hello,

Wanted to start off and say what a great project! I am running in to an issue when running through the example script using the last 3 buttons.

I receive the following error;

Invoke-ButtonAction : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Program Files\WindowsPowerShell\Modules\PSScriptMenuGui\1.0.1\public\functions.ps1:125 char:13
+             Invoke-ButtonAction $_.Source.Name
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-ButtonAction

Using PS 5.1.19041.906

Any help would be appreciated,

Additional functionality

Hi,

Firstly, great work!

Is it possible to add more functionality to the GUI?

  1. Fullscreen Mode
  2. Grid layout

Thanks

Enhancements

Hi,
I've discovered your module. Great job. Could i suggest you add more samples for use it.
i.e. : Auto build GUI - How ? Always with the .csv file in input,.. but the .csv file could be build automatically.
In a Main Script :

  • Gather script files (.bat, .cmd, .ps1) in a specific folder (i.e. Scripts )
  • Building the .csv file automatically with info gathered
  1. Section : Auto-completion depending on file name. i.e. If file name begin by "Get", section will be "QUERIES", il the name file begin by "ADD" section will be "NEW", ...
  2. Method : Auto-completion depending on file type (.ps1, .cmd, ...)
  3. Command : auto-completion depending of file Name excluding the prefix of the file Name
  4. Descrption : auto-completion depending of the Help Section in the script
    if .cmd or .bat file : read first line (comment) in the file script
    if .ps1 file : read .SYNOPSIS section
  • Saving the .csv file
  • Call Show-MenuGui cmdlet

With this, anyone could build a dynamic GUI depending of the currents scripts in path

I'm thinking that this could be a real good enhancement to show or describe about your module in your Gibhub

I'm aware that to realize this, there are some prerequisites (Naming convention for script files, Help or comments in script files, ...)

Regards
Olivier

Scripts with multiple parameters

I'm having some difficulty trying to get a powershell script that can have multiple parameters with values to work with the Powershell Script Menu Gui.
A normal execution of my script is like this:
checkup.ps1 -patchowner "My Name" -showpatches

There are other parameters that can be used with this script, each one does something different.
How would I go about adding this to the csv file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.