You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw new System.ComponentModel.Win32Exception(Marshal.GetLastWin32Error());
109
+
}
110
+
'
111
+
33
112
# SCRIPT
34
113
35
114
Write-Output"`n!!!!!!!!!!`nWARNING: THIS SCRIPT MAKE CHANGES TO THE REGISTRY, MAKE SURE YOU HAVE MADE A RESTORE POINT`n!!!!!!!!!!`n"
@@ -540,6 +619,7 @@ public class Wallpaper
540
619
# Print choices
541
620
Write-Output"`n1. Change the keyboard layout"
542
621
Write-Output"2. Change the mouse speed"
622
+
Write-Output"3. Edit sticky keys"
543
623
# Prompt user for choice
544
624
$Iset=Read-Host"`nInput the number of an option from the list above, or leave blank to exit"
545
625
switch ($Iset) {
@@ -592,6 +672,20 @@ public class Wallpaper
592
672
}
593
673
} until ($MouseSpeed-In1..20-Or$MouseSpeed-notmatch"\S")
594
674
}
675
+
3 { # Edit sticky keys
676
+
$SKEYS=$Host.UI.PromptForChoice("Enable the sticky keys hotkey?","",@("&Cancel","&Enable","&Disable"),0)
677
+
switch ($SKEYS) {
678
+
0 {
679
+
Write-Output"`nCanceled"
680
+
}
681
+
1 {
682
+
[demo.StickyKeys]::EnableHotKey($false,$true)
683
+
}
684
+
2 {
685
+
[demo.StickyKeys]::EnableHotKey($true,$true)
686
+
}
687
+
}
688
+
}
595
689
}
596
690
} until ($Iset-notmatch"\S")
597
691
}
@@ -607,7 +701,7 @@ public class Wallpaper
607
701
switch ($PGram) {
608
702
1 { # FireFox
609
703
$InstallFirefox=$Host.UI.PromptForChoice("Which version of firefox would you like to install?","",@("&Cancel","&Latest","&Nightly","&Beta","&Dev","&ESR"),0)
0 commit comments