bat指令碼自定義魔獸warIII執行解析度,去黑邊

2022-03-15 23:15:27 字數 3127 閱讀 2530

我們一般平時安裝完wariii後執行時的解析度預設是800*600,導致有黑邊的存在。所以我寫了乙個bat指令碼來自定義wariii的執行解析度。需要以管理員身份執行。

提取碼:m17p

wariii_screen_setting.bat指令碼:

@echo off

if not "

%os%

"=="

windows_nt

"exit

title wariii screen setting

chcp

65001>nul

cd /d %~dp0

echo wariii screen setting

echo ***********************************=echo author:feiquan

echo create:

2019/2/28

10:00

echo updatadate:

2019/2/28

13:03

echo version:

1.0v

echo function:

echo wariii screen auto setting

echo plese run

asadministrator.

echo auto backup wariii reg to current path wariii_old.reg .

echo ***********************************==pause

clssetlocal enabledelayedexpansion

set reg_war=hkcu\software\blizzard entertainment\warcraft iii\video

reg query

"%reg_war%

" >nul

if not %errorlevel%==0

( echo not find warcraft iii .please intasll warcraft iii

try again .... & timeout /t 5 /nobreak &exit

) else

( echo find warcraft iii success.

echo.

)echo current war3 screen width and height :

for /f "

skip=2 usebackq tokens=3

" %%i in (`reg query "

%reg_war%

" /v reswidth`) do

set /a w=%%i & echo w: !w!

for /f "

skip=2 usebackq tokens=3

" %%i in (`reg query "

%reg_war%

" /v resheight`) do

set /a h=%%i & echo h: !h!echo.

set /p question=do you wart to change wariii screen ? (y/n)

if /i not "

%question%

"=="y"

exit

echo start backup wariii reg :

reg export

"%reg_war%

" wariii_old.reg /y >nul

if %errorlevel%==0

( echo wariii_reg backup to %cd%\wariii_old.reg

) else

( echo wariii backup defeat.

set /p question=do you wart to continue

set wariii screen ? (y/n)

if /i not "

%question%

"=="y"

exit

):setting

echo.

echo start

setwariii screen :

set /p sw=please input wariii screen width :

set /p sh=please input wariii screen height :

echo.

reg add

"%reg_war%

" /v reswidth /t reg_dword /d %sw% /f >nul

if %errorlevel%==0

( echo add

newwidth success.

) else

( echo add

newwidth defeat.

)reg add

"%reg_war%

" /v resheight /t reg_dword /d %sh% /f >nul

if %errorlevel%==0

( echo add

newheigth success.

echo you can restat wariii.

timeout /t 3 /nobreak

exit

) else

( echo add

newheigth defeat.

goto

setting

)

執行結果:

然後重啟wariii就可以了。

PowerDesigner 自定義指令碼

原文 code 表名 tname 生成後的效果預覽 表名 tname if not exists select 1 from sysobjects where id object id qualifier table and type u begin create table qualifier t...

monkey自定義指令碼

1 啟動activity launchactivity 包名,activity名 通過adb shell dumpsys window findstr mcurrentfocus 來獲取包名和activity 2 點選 tap tap x,y,time x座標和y座標,time為點選時間,單位ms ...

自定義指令碼後門 測試

很簡潔,很容易理解 先搭建乙個web伺服器用來接收資料,指令碼實在其他電腦上執行的,怎麼將 放到其電腦自己思考 shell指令碼 bin bash 將指令碼載入的開機啟動項 starts 安裝指令碼 install install starts rm f 0 echo install success...