批处理实现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 @   秋月的私语  阅读(52)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示