Fix: Windows 10 Buttons on launch

This commit is contained in:
Olai Vike Bøe 2023-11-01 15:30:01 +01:00
parent d7a4cb1aec
commit c9a3e868e3
2 changed files with 27 additions and 16 deletions

View file

@ -440,27 +440,41 @@ if($value8.ShowCortanaButton -eq 0)
$WPFUnpin_People.Add_Checked({RemPeople})
$WPFUnpin_People.Add_UnChecked({RemPeople})
$value9 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand"
if($value9.PeopleBand -eq 0)
{
$WPFUnpin_People.IsChecked = $true
if ($value9) {
if ($value9.PeopleBand -eq 0) {
$WPFUnpin_People.IsChecked = $true
}
}
else {
# If the registry value doesn't exist, create it with a value of 0
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 0
}
$WPFUnpin_Ink_Workspace.Add_Checked({RemInkWS})
$WPFUnpin_Ink_Workspace.Add_UnChecked({RemInkWS})
$value10 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\" -Name "PenWorkspaceButtonDesiredVisibility"
if($value10.PenWorkspaceButtonDesiredVisibility -eq 0)
{
$WPFUnpin_Ink_Workspace.IsChecked = $true
if ($value10) {
if ($value10.PenWorkspaceButtonDesiredVisibility -eq 0) {
$WPFUnpin_Ink_Workspace.IsChecked = $true
}
}
else {
# If the registry value doesn't exist, create it with a value of 0
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace" -Name "PenWorkspaceButtonDesiredVisibility" -Value 0
}
$WPFUnpin_Touch_Keyboard.Add_Checked({RemTouchKey})
$WPFUnpin_Touch_Keyboard.Add_UnChecked({RemTouchKey})
$value11 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility"
if($value11.TipbandDesiredVisibility -eq 0)
{
$WPFUnpin_Touch_Keyboard.IsChecked = $true
if ($value11) {
if ($value11.TipbandDesiredVisibility -eq 0) {
$WPFUnpin_Touch_Keyboard.IsChecked = $true
}
}
else {
# If the registry value doesn't exist, create it with a value of 0
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 0
}
@ -752,9 +766,6 @@ if ($windowsVersion -eq 10) {
OlaYZen

View file

@ -49,8 +49,8 @@
<CheckBox x:Name="ClockDisplay" Content="Taskbar Clock Display Seconds" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="AeroShake" Content="Disable Aero Shake" HorizontalAlignment="Left" Margin="10,85,0,0" VerticalAlignment="Top" IsChecked="False" Grid.ColumnSpan="2"/>
<Button x:Name="DebloatWin" Content="Debloat Windows" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<Button x:Name="DebloatWin_Copy" Content="Install Applications" HorizontalAlignment="Left" Margin="10,139,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<Button x:Name="DebloatWin_Copy1" Content="Update Windows" HorizontalAlignment="Left" Margin="10,173,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<Button x:Name="InstallApplicationsButton" Content="Install Applications" HorizontalAlignment="Left" Margin="10,139,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<Button x:Name="UpdateWindowsButton" Content="Update Windows" HorizontalAlignment="Left" Margin="10,173,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<CheckBox x:Name="Win10RC" Content="Windows 10 Right Click" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False"/>
</Grid>
</TabItem>
@ -64,7 +64,7 @@
<Grid Background="White">
<Label x:Name="Label5" Content="Version" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold" Grid.ColumnSpan="2"/>
<Label x:Name="OSLabel" Content="Windows Detector" HorizontalAlignment="Left" Margin="10,228,0,0" VerticalAlignment="Top"/>
<Label x:Name="ExplainingLabel_Copy1" Content="Version 1.1.7 (Build 1171.02)" HorizontalAlignment="Right" Margin="0,228,10,0" VerticalAlignment="Top"/>
<Label x:Name="ExplainingLabel_Copy1" Content="Version 1.1.7 (Build 1171.03)" HorizontalAlignment="Right" Margin="0,228,10,0" VerticalAlignment="Top"/>
</Grid>
</TabItem>
</TabControl>