问题补充说明: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=" & call :Check
call :S360问答etNew "set Tmsg=关闭" "set Tmsg=开启" "set Tmsg=关闭"
title 高 DPI 禁用缩放 开/关 By 依梦琴瑶 - 已%Tm伤是sg%
echo 1可分信致其必液、开启高 DPI 禁用缩放
echo 2、关闭高 DPI 禁用缩放
紧哥非做病补调季echo 3、退出脚本工具
ec局走装火各顺盾ho,
set /p ch=请选择序号并回车:
if "%ch%"=="1" goto ON
if "%ch%"=="2" goto O代道同督端洲准甲FF
if "%ch%"=="3" goto END
goto Main
:ON
call :Check
call :SetNew "set Var=HIGHDPIAWARE" "goto Main" "set Var=%Var% HIGHDPIAWARE"
call :RegAdd "%Var%" "开启"
goto Main
:OFF
call :Check
call :SetNew "g目手各牛oto Main" "set Var会足错前=%Var:HIGHDPIAWARE=%" "goto Main"
call :RegAdd "%Var%" "关升验谁题闭"
goto Main
:Check
se与知吸至阻杀许伟积阶t "Key=HKCU\Software\Microsoft\Windows NT\Curren鱼tVersion\AppCompatFlags\Layers"
for /f "skip=2 d义成州然委elims=" %%a in ('reg query "%Key%" /v "%App_path%" 2政宣^>nul') do (
set "Var又量断=%%~a"
)
if not defined Var goto :eof
set "Var=%Var:REG_SZ =|%"
for /f "tokens=2* delims=|" %%a in ("%Var%") do set "Str=%%~a"
if not defined Str (
reg delete "%Key%" /v "%A执收析陈派pp_path%" /f >nul 2>nul
set "V曾低精县错胶英显ar="
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_SZ /供走零及也括d "%~1" /f
echo 已%~2
ping 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