批处理实现Windows任务栏透明度修改

批处理的实现是在吾爱破解摘取的,感谢原作者的分享:

@echo off
:AA
echo,
choice /c 1234 /m 选项1:设置任务栏透明度,选项2:恢复默认设置,选项3:Win10设置不起效时选择,选项4:退出批处理
if %errorlevel% equ 4 goto :eof
if %errorlevel% equ 3 goto :Super
if %errorlevel% equ 2 goto :BACK
if %errorlevel% equ 1 goto :start
goto :eof

:start
echo,&set /p "ss=请输入透明度(0~10)然后回车,0为全透明,10为不透明:"
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v TaskbarAcrylicOpacity /t REG_DWORD /d %ss% /f
taskkill /f /im explorer.exe
start explorer.exe
goto AA

:BACK
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v TaskbarAcrylicOpacity /f
taskkill /f /im explorer.exe
start explorer.exe
goto AA

:Super
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v UseOLEDTaskbarTransparency /f
taskkill /f /im explorer.exe
start explorer.exe
goto AA

 

posted @ 2023-04-04 16:38  秋月的私语  阅读(45)  评论(0编辑  收藏  举报