win10 cf全屏分辨率脚本

王朝百态·作者佚名  2016-10-24  
宽屏版  字体: |||超大  

win10 自动游戏全屏分辨率设置脚本

文件(最开始版本)下载地址:http://pan.baidu/s/1c0fkysw

更新脚本(改进的):http://pan.baidu/s/1mgxremw(这次是循环检测,不是同时检测,发现游戏有点迟钝,不知什么原因)

下图是文件清单

工具/原料

setres.exe ,hstart64.exe ,hstart.exe ,记事本即可

win10上

方法/步骤

1:“后台.vbs”文件脚本(目的是为了开机计划任务后台运行):

set w= createobject("wscript.shell")

currentpath = createobject("scripting.filesystemobject").getfile(wscript.scriptfullname).parentfolder.path

ws.currentdirector= currentpath

ws.run "cmd /c 新后台.bat",vbhide

“新后台.bat”文件(目的是使用hstart版本文件的后台隐藏和低优先级的运行的启动其它cmd功能) :

cd %~dp0

hstart /noconsole /idle "test.cmd"||hstart64 /noconsole /idle "test.cmd"

2:“test.cmd”文件(检测后台进程) :

:continue

tasklist|findstr "crossfire.exe"

if %errorlevel%==0

( setreh1024 v768;

hstart /noconsole /idle "low2.cmd"||hstart64 /noconsole /idle "low2.cmd";

exit;

)

else ( echo 该进程不存在或当前不在运行状态)

ping localhost -n 60 > nul

goto continue

“low2.cmd”文件(检测后台进程是否结束) :

:low

tasklist|findstr "crossfire.exe"

if %errorlevel%==1

( setreh1440 v900;

hstart /noconsole /idle "test.cmd"||hstart64 /noconsole /idle "test.cmd";

exit;

)

else ( echo 该进程存在或当前在运行状态)

ping localhost -n 90 > nul

goto low

3:这里为了开机即启动随时待命(利用系统工具里面的任务计划程序)

以上图片是下面的随后简略步骤(可做可不做,不做就需在每次重启电脑后游戏开启时双击vbs就可以)

使用xml导入需要注意:

<command>c:\users\adminstrators\downloads\2008-10-07_023556-0\后台.vbs</command>

command标签(倒数四五行)那里改成你存放“后台.vbs”文件的路径,上面是我自己电脑路径

游戏分辨率.xml(文件的导出任务) :

<?xml version="1.0" encoding="utf-16"?>

<task version="1.2" xmlns="http://schemas.microsoft/windows/2004/02/mit/task">

<registrationinfo>

<date>2015-09-10t21:35:52.6536894</date>

<author>分享\mcadmin</author>

<uri>\游戏分辨率</uri>

</registrationinfo>

<triggers>

<boottrigger>

<enabled>true</enabled>

</boottrigger>

<logontrigger>

<enabled>true</enabled>

</logontrigger>

</triggers>

<principals>

<principal id="author">

<userid>s-1-5-21-258676072-3153184838-610523072-1017</userid>

<logontype>interactivetoken</logontype>

<runlevel>highestavailable</runlevel>

</principal>

</principals>

<settings>

<multipleinstancespolicy>ignorenew</multipleinstancespolicy>

<disallowstartifonbatteries>false</disallowstartifonbatteries>

<stopifgoingonbatteries>true</stopifgoingonbatteries>

<allowhardterminate>false</allowhardterminate>

<startwhenavailable>true</startwhenavailable>

<runonlyifnetworkavailable>false</runonlyifnetworkavailable>

<idlesettings>

<stoponidleend>true</stoponidleend>

<restartonidle>true</restartonidle>

</idlesettings>

<allowstartondemand>true</allowstartondemand>

<enabled>true</enabled>

<hidden>false</hidden>

<runonlyifidle>false</runonlyifidle>

<waketorun>true</waketorun>

<executiontimelimit>pt0s</executiontimelimit>

<priority>7</priority>

<restartonfailure>

<interval>pt1m</interval>

<count>10</count>

</restartonfailure>

</settings>

<actioncontext="author">

<exec>

<command>c:\users\adminstrators\downloads\2008-10-07_023556-0\后台.vbs</command>

</exec>

</actions>

</task>

4:这是我的计划任务设置截图:

注意事项

游戏分辨率不合适的就改test.cmd的数字即可,类似桌面分辨率不合适就修改low.cmd的数字,不过数字不是乱改,只能根据自己情况改

水平很低,如有错误请给予斧正,大神路过可以直接略过

经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。举报

希望本文win10 cf全屏分辨率脚本能帮到你。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有