mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
4773cd6d2b
* Fix config tab (#1547) The JSON is poorly formatted. In my machine this resolved the issue * Compile Winutil * Add toggle "sticky keys" (#1546) Adds a toggle to enable/disable sticky keys * added miniconda, temurin, presentmon and pyenv-win (#1542) * Compile Winutil --------- Co-authored-by: Yuri Gabriel <97139700+Yuuh15@users.noreply.github.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: Jakub Krojec <jakub.krojec@gmail.com>
29 lines
1.2 KiB
PowerShell
29 lines
1.2 KiB
PowerShell
function Invoke-WPFToggle {
|
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Invokes the scriptblock for the given toggle
|
|
|
|
.PARAMETER Button
|
|
The name of the toggle to invoke
|
|
|
|
#>
|
|
|
|
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){
|
|
|
|
"WPFToggleDarkMode" {Invoke-WinUtilDarkMode -DarkMoveEnabled $(Get-WinUtilToggleStatus WPFToggleDarkMode)}
|
|
"WPFToggleBingSearch" {Invoke-WinUtilBingSearch $(Get-WinUtilToggleStatus WPFToggleBingSearch)}
|
|
"WPFToggleNumLock" {Invoke-WinUtilNumLock $(Get-WinUtilToggleStatus WPFToggleNumLock)}
|
|
"WPFToggleVerboseLogon" {Invoke-WinUtilVerboseLogon $(Get-WinUtilToggleStatus WPFToggleVerboseLogon)}
|
|
"WPFToggleShowExt" {Invoke-WinUtilShowExt $(Get-WinUtilToggleStatus WPFToggleShowExt)}
|
|
"WPFToggleSnapFlyout" {Invoke-WinUtilSnapFlyout $(Get-WinUtilToggleStatus WPFToggleSnapFlyout)}
|
|
"WPFToggleMouseAcceleration" {Invoke-WinUtilMouseAcceleration $(Get-WinUtilToggleStatus WPFToggleMouseAcceleration)}
|
|
"WPFToggleStickyKeys" {Invoke-WinUtilStickyKeys $(Get-WinUtilToggleStatus WPFToggleStickyKeys)}
|
|
}
|
|
} |