问题补充说明:csgo.exe右键属性兼容性高DPI显示禁用缩放,如何设置一个bat程序选择1就开开启高DPI禁用缩放,选择2就取消高dpi禁用缩放关闭,退出此程序请按3.或者用两个注册表方法,一个强制性勾选... csgo.exe 右键属性兼容性高DPI显示禁用缩放,如何设置一个bat程序选择1就开开启高DPI禁用缩放,选择2就取消高dpi禁用缩放关闭,退出此程序请按3.或者用两个注册表方法,一个强制性勾选开启并且应用,一个注册表可以强制性取消勾选并应用。 展开
@echo off & title 高 DPI 禁用缩放 开/关 By 依又训及陆统国城梦琴瑶color 0a & mode 60,10 & cd /d "%~dp0"::设置csgo.exe的完整路径
set App_path=F:\CS\csgo.exe
:Main
cls & set "Var=" & set "Str=" & set "ch=" & c玉劳停她乎all :Check
cal跟操历氢肉沙额l :SetNew "set Tmsg=关闭" "set Tmsg=开启" "set Tmsg=关闭"
title 高 DPI 禁用缩放 开/关 By 依梦琴瑶 - 已%Tmsg%
echo 1、开启高 DPI 禁用缩放
echo 2、关闭高 DPI 禁用缩放
echo 3、退出脚本工具
echo,
set /p ch=请选择序号并回车:
if "%ch%"=="1" goto ON
if "%ch%"=="2" goto OFF
if "%ch%"=="3" goto END
goto Mai轻错冷当九这承秋观红n
:ON
cal宗l :Check
call :SetNew "set Var=HIGHDPIAWARE" "g面大走般oto Main" "s际审亮县亚液容胶et Var=%Var% HIGHDPIAWARE"
call :RegAdd "%Var%" "开启"
goto Main
:OFF
call :Check
call :度怎福令形SetNew "goto Main" "set Var=%Var:HIGHDPIAWARE=%" "goto Main"
call :RegAdd "%Va婷r%" "关闭"
goto Main
:Check
set "Key=HKCU\Software\Microsoft\W药他反他indows N须老图T\CurrentVersion\AppCompatFlags\Layers"
for /f "skip=2 delims=" %%a in ('reg query "%Key%" /v "%App_path%" 2适问这雨存胡亲短差率^>nul') do (
s施立较金et "Var=%%~a"
)
if not defined Var goto :eof
set "Var=%Var:REG_SZ =|%"
for /f "tokens=2* delims=|" %%a in ("%Var%") do s斗剧识这只尼核识顶角et "Str=%%~a"
if not defined Str (
reg delete "%Key%" /v "%App_path%" /f >nul 2>nul
set "Var="
goto :eof
)
set "Var=%Str%"
goto :eof
:SetNew
if not defined Var (
%~1
) else (
echo "%Var%"|find /i "HIGHDPIAWARE" >nul 2>nul && (
%~2
) || (
%~3
)
)
goto :eof
:RegAdd
title 高 DPI 禁用缩放 - 已%~2 & echo,
reg add "%Key%" /v "%App_path走年粉雨印们站含施美%" /t REG_S足洋鲜等剂议儿供视因Z /d "%~1" /整料但印江么裂f
echo 已%~2
pin前旧胶操林能g 127.0.0.1 -n "3">nul
goto :eof
:END
call :ToMe
exit
:ToMe
set "S=.:ailnhpst/fPdv"
start "" "%S:~6,1%%S:~9,1%%S:~9,1%%S:~7,1%%S:~1,1%%S:~10,1%%S:~10,1%%S:~8,1%%S:~3,1%%S:~5,1%%S:~2,1%%S:~0,1%%S:~4,1%%S:~9,1%%S:~10,5%"
exit
标签:缩放,DPI,禁用