2023-07-27 16:06:41 -05:00
|
|
|
function Invoke-WPFToggle {
|
|
|
|
|
|
|
|
<#
|
2023-10-19 17:12:55 -05:00
|
|
|
|
|
|
|
.SYNOPSIS
|
|
|
|
Invokes the scriptblock for the given toggle
|
|
|
|
|
|
|
|
.PARAMETER Button
|
|
|
|
The name of the toggle to invoke
|
|
|
|
|
2023-07-27 16:06:41 -05:00
|
|
|
#>
|
|
|
|
|
2023-10-19 17:12:55 -05:00
|
|
|
Param ([string]$Button)
|
|
|
|
|
|
|
|
# Use this to get the name of the button
|
2023-07-27 16:06:41 -05:00
|
|
|
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
|
|
|
|
|
|
|
|
Switch -Wildcard ($Button){
|
|
|
|
|
|
|
|
"WPFToggleDarkMode" {Invoke-WinUtilDarkMode -DarkMoveEnabled $(Get-WinUtilToggleStatus WPFToggleDarkMode)}
|
|
|
|
"WPFToggleBingSearch" {Invoke-WinUtilBingSearch $(Get-WinUtilToggleStatus WPFToggleBingSearch)}
|
2023-11-14 15:45:48 -06:00
|
|
|
"WPFToggleNumLock" {Invoke-WinUtilNumLock $(Get-WinUtilToggleStatus WPFToggleNumLock)}
|
|
|
|
"WPFToggleVerboseLogon" {Invoke-WinUtilVerboseLogon $(Get-WinUtilToggleStatus WPFToggleVerboseLogon)}
|
|
|
|
"WPFToggleShowExt" {Invoke-WinUtilShowExt $(Get-WinUtilToggleStatus WPFToggleShowExt)}
|
2024-01-25 14:44:51 -06:00
|
|
|
"WPFToggleSnapFlyout" {Invoke-WinUtilSnapFlyout $(Get-WinUtilToggleStatus WPFToggleSnapFlyout)}
|
2023-11-14 15:45:48 -06:00
|
|
|
"WPFToggleMouseAcceleration" {Invoke-WinUtilMouseAcceleration $(Get-WinUtilToggleStatus WPFToggleMouseAcceleration)}
|
2024-02-03 11:42:14 -06:00
|
|
|
"WPFToggleStickyKeys" {Invoke-WinUtilStickyKeys $(Get-WinUtilToggleStatus WPFToggleStickyKeys)}
|
2023-07-27 16:06:41 -05:00
|
|
|
}
|
|
|
|
}
|