Files
winutil/functions/public/Invoke-WPFButton.ps1
T

64 lines
2.9 KiB
PowerShell
Raw Normal View History

+3
2023-03-07 12:28:00 -08:00
function Invoke-WPFButton {
<#
2023-10-19 17:12:55 -05:00
.SYNOPSIS
Invokes the function associated with the clicked button
.PARAMETER Button
The name of the button that was clicked
+3
2023-03-07 12:28:00 -08:00
#>
2023-10-19 17:12:55 -05:00
Param ([string]$Button)
# Use this to get the name of the button
+3
2023-03-07 12:28:00 -08:00
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
if (-not $sync.ProcessRunning) {
Set-WinUtilProgressBar -label "" -percent 0 -hide $true
}
2024-08-06 15:50:36 -05:00
Switch -Wildcard ($Button) {
+3
2023-03-07 12:28:00 -08:00
"WPFTab?BT" {Invoke-WPFTab $Button}
"WPFInstall" {Invoke-WPFInstall}
"WPFUninstall" {Invoke-WPFUnInstall}
+3
2023-03-07 12:28:00 -08:00
"WPFInstallUpgrade" {Invoke-WPFInstallUpgrade}
"WPFStandard" {Invoke-WPFPresets "Standard" -checkboxfilterpattern "WPFTweak*"}
"WPFMinimal" {Invoke-WPFPresets "Minimal" -checkboxfilterpattern "WPFTweak*"}
"WPFClearTweaksSelection" {Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFTweak*"}
"WPFClearInstallSelection" {Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFInstall*"}
+3
2023-03-07 12:28:00 -08:00
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
2024-06-25 21:37:34 +02:00
"WPFOOSUbutton" {Invoke-WPFOOSU}
2024-07-08 22:22:26 +02:00
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enable"}
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disable"}
+3
2023-03-07 12:28:00 -08:00
"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}
2023-08-02 19:43:52 -05:00
"WPFPanelregion" {Invoke-WPFControlPanel -Panel $button}
+3
2023-03-07 12:28:00 -08:00
"WPFPanelsound" {Invoke-WPFControlPanel -Panel $button}
2024-09-10 03:14:22 +02:00
"WPFPanelprinter" {Invoke-WPFControlPanel -Panel $button}
+3
2023-03-07 12:28:00 -08:00
"WPFPanelsystem" {Invoke-WPFControlPanel -Panel $button}
"WPFPaneluser" {Invoke-WPFControlPanel -Panel $button}
"WPFUpdatesdefault" {Invoke-WPFUpdatesdefault}
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
+12
2023-11-28 16:11:11 -06:00
"WPFFixesWinget" {Invoke-WPFFixesWinget}
+2
2024-02-02 16:22:08 -06:00
"WPFRunAdobeCCCleanerTool" {Invoke-WPFRunAdobeCCCleanerTool}
2023-07-13 15:46:00 -05:00
"WPFFixesNetwork" {Invoke-WPFFixesNetwork}
+3
2023-03-07 12:28:00 -08:00
"WPFUpdatesdisable" {Invoke-WPFUpdatesdisable}
"WPFUpdatessecurity" {Invoke-WPFUpdatessecurity}
"WPFWinUtilShortcut" {Invoke-WPFShortcut -ShortcutToAdd "WinUtil" -RunAsAdmin $true}
+2
2023-05-09 13:14:27 -05:00
"WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"}
"WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"}
+12
2023-11-28 16:11:11 -06:00
"WPFGetIso" {Invoke-WPFGetIso}
"WPFMicrowin" {Invoke-WPFMicrowin}
2024-01-12 00:34:41 -06:00
"WPFCloseButton" {Invoke-WPFCloseButton}
+2
2024-02-02 16:22:08 -06:00
"MicrowinScratchDirBT" {Invoke-ScratchDialog}
2024-09-10 21:05:55 +02:00
"WPFWinUtilPSProfile" {Invoke-WinUtilpsProfile}
2024-10-02 00:50:45 +05:30
"WPFWinUtilSSHServer" {Invoke-WinUtilSSHServer}
+3
2023-03-07 12:28:00 -08:00
}
}