mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
2321c071ee
* Updated Edge Removal Script to the more up-to-date one. (#918) * Update edgeremoval.bat from the original source. * Added my modifications to the extra cleanup part * Updates credits for Edge Removal script * Removed "getfirefox" * Credit to the original source * Compile Winutil * fix typos (#924) * Compile Winutil * Remove ooshutup10 "Disable search box in task bar" (#929) * Compile Winutil * Fix Panel Glitch and add intl * Compile Winutil * Fix Bluetooth services * Compile Winutil * fix function --------- Co-authored-by: Antun Nitraj <antnitraj@gmail.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: AdamJedl <100023363+AdamJedl@users.noreply.github.com>
56 lines
2.7 KiB
PowerShell
56 lines
2.7 KiB
PowerShell
function Invoke-WPFButton {
|
|
|
|
<#
|
|
|
|
.DESCRIPTION
|
|
Meant to make creating buttons easier. There is a section below in the gui that will assign this function to every button.
|
|
This way you can dictate what each button does from this function.
|
|
|
|
Input will be the name of the button that is clicked.
|
|
#>
|
|
|
|
Param ([string]$Button)
|
|
|
|
#Use this to get the name of the button
|
|
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
|
|
|
|
Switch -Wildcard ($Button){
|
|
|
|
"WPFTab?BT" {Invoke-WPFTab $Button}
|
|
"WPFinstall" {Invoke-WPFInstall}
|
|
"WPFuninstall" {Invoke-WPFUnInstall}
|
|
"WPFInstallUpgrade" {Invoke-WPFInstallUpgrade}
|
|
"WPFdesktop" {Invoke-WPFPresets "Desktop"}
|
|
"WPFlaptop" {Invoke-WPFPresets "laptop"}
|
|
"WPFminimal" {Invoke-WPFPresets "minimal"}
|
|
"WPFexport" {Invoke-WPFImpex -type "export" -CheckBox "WPFTweaks"}
|
|
"WPFimport" {Invoke-WPFImpex -type "import" -CheckBox "WPFTweaks"}
|
|
"WPFexportWinget" {Invoke-WPFImpex -type "export" -CheckBox "WPFInstall"}
|
|
"WPFimportWinget" {Invoke-WPFImpex -type "import" -CheckBox "WPFInstall"}
|
|
"WPFclear" {Invoke-WPFPresets -preset $null -imported $true}
|
|
"WPFclearWinget" {Invoke-WPFPresets -preset $null -imported $true -CheckBox "WPFInstall"}
|
|
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
|
|
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enabled"}
|
|
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disabled"}
|
|
"WPFToggleDarkMode" {Invoke-WPFDarkMode -DarkMoveEnabled $(Get-WinUtilDarkMode)}
|
|
"WPFundoall" {Invoke-WPFundoall}
|
|
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
|
"WPFPanelDISM" {Invoke-WPFPanelDISM}
|
|
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
|
"WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelpower" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelregion" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelsound" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelsystem" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPaneluser" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFUpdatesdefault" {Invoke-WPFUpdatesdefault}
|
|
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
|
|
"WPFFixesNetwork" {Invoke-WPFFixesNetwork}
|
|
"WPFUpdatesdisable" {Invoke-WPFUpdatesdisable}
|
|
"WPFUpdatessecurity" {Invoke-WPFUpdatessecurity}
|
|
"WPFWinUtilShortcut" {Invoke-WPFShortcut -ShortcutToAdd "WinUtil"}
|
|
"WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"}
|
|
"WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"}
|
|
}
|
|
} |