Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 30f93c3

Browse files
Conder000Disassembler0
authored andcommitted
Add "Disable F1 Help key" (#221)
1 parent 130db06 commit 30f93c3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ SetVisualFXPerformance # SetVisualFXAppearance
118118
# DisableStartupSound # EnableStartupSound
119119
# DisableChangingSoundScheme # EnableChangingSoundScheme
120120
# EnableVerboseStatus # DisableVerboseStatus
121+
DisableF1HelpKey # EnableF1HelpKey
121122

122123
### Explorer UI Tweaks ###
123124
# ShowExplorerTitleFullPath # HideExplorerTitleFullPath

Win10.psm1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,25 @@ Function DisableVerboseStatus {
18441844
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'VerboseStatus' -Value '0' -PropertyType DWORD -Force
18451845
}
18461846

1847+
# Disable F1 Help key in Explorer and on the Desktop
1848+
Function DisableF1HelpKey {
1849+
Write-Output "Disabling F1 Help key..."
1850+
If (!(Test-Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32")) {
1851+
New-Item -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32" -Force | Out-Null
1852+
}
1853+
Set-ItemProperty -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32" -Name "(Default)" -Type "String" -Value ""
1854+
If (!(Test-Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64")) {
1855+
New-Item -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Force | Out-Null
1856+
}
1857+
Set-ItemProperty -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Name "(Default)" -Type "String" -Value ""
1858+
}
1859+
1860+
# Enable F1 Help key in Explorer and on the Desktop
1861+
Function EnableF1HelpKey {
1862+
Write-Output "Enabling F1 Help key..."
1863+
Remove-Item "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0" -Recurse -ErrorAction SilentlyContinue
1864+
}
1865+
18471866
##########
18481867
#endregion UI Tweaks
18491868
##########

0 commit comments

Comments
 (0)