China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 06:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 【Help】Can batch processing change the screen resolution? View 4,042 Replies 14
Original Poster Posted 2007-04-22 11:15 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
新手上路
Credits 10
Posts 4
Joined 2007-04-22 10:08
19-year member
UID 86072
Gender Male
Status Offline
I work in an internet café. Due to the nature of my job, I often encounter some problems. For example, Myth of the Realms cannot be windowed. There are no special window tools for Myth of the Realms online.
To achieve windowed mode, the resolution must be adjusted to above 1024*768. I found that 1280*1024 has the best windowed effect, but 1024*768 is the most popular resolution.

What I want to do now is whether I can use a batch script to automatically modify the specified resolution (1280*1024)? After the customer opens it, the resolution can be modified, that is, the Myth of the Realms game runs in windowed mode?

Thank you. I'm new here. I feel the learning atmosphere here is very good.
Floor 2 Posted 2007-04-22 11:20 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
新手上路
Credits 10
Posts 4
Joined 2007-04-22 10:08
19-year member
UID 86072
Gender Male
Status Offline
If any expert can do it, I'm sure it will be a great achievement. It's a problem that has troubled many network administrators...

Waiting for the expert. I'm a novice, learning...

Good Good Study.Day Day Up.
Floor 3 Posted 2007-04-22 11:32 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Only write it in another language, then call it with P. It's impossible to do it alone with P.
Floor 4 Posted 2007-04-22 11:41 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
新手上路
Credits 10
Posts 4
Joined 2007-04-22 10:08
19-year member
UID 86072
Gender Male
Status Offline
Oh?......I've always wondered if it can be done with P.

Unexpectedly, what seemed like a simple problem is so complicated.....
Floor 5 Posted 2007-04-22 22:38 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
wf10000 +1 2007-04-23 11:56
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 6 Posted 2007-04-23 11:56 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
新手上路
Credits 10
Posts 4
Joined 2007-04-22 10:08
19-year member
UID 86072
Gender Male
Status Offline
Thank you, above!~~~
Floor 7 Posted 2007-04-23 12:22 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
I have a thought, that is to use a registry monitoring program like Regmon.exe to monitor registry behavior, then manually set the monitor resolution, and then look at Regmon.exe to see which registry key values are modified or created, and then write a batch script to modify the registry according to its characteristics. I wonder if this is feasible.
Floor 8 Posted 2007-04-23 14:00 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
It is estimated that modifying the registry alone is useless (maybe restarting will be effective). Probably, some refreshing methods need to be enabled to switch the display.
Floor 9 Posted 2007-04-23 14:02 ·  中国 广东 广州 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
The command-line tools are included in the graphics card driver package
Floor 10 Posted 2007-04-23 14:04 ·  中国 广东 广州 白云区 电信
高级用户
★★★
潜水修练批处理
Credits 788
Posts 366
Joined 2006-12-31 02:43
19-year member
UID 75048
Gender Male
Status Offline
Originally posted by lxmxn at 2007-4-22 11:22 PM:
I have an idea, which is to use a registry monitoring program like Regmon.exe to monitor registry behavior, then manually set the monitor resolution, and then look at Regmon.exe to see which registry key values are modified...


Under the key value of two REG_DWORD types under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{CA6A5C1F-A776-496E-9BD6-618B7DD56E5D}\0000:
DefaultSettings.XResolution Horizontal direction
DefaultSettings.YResolution Vertical direction
Floor 11 Posted 2007-04-23 14:09 ·  中国 广东 广州 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
Originally posted by dikex at 2007-4-23 01:04 AM:


HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{CA6A5C1F-A776-496E-9BD6-618B7DD56E5D}\0000下的两个类型REG_DWORD的 ...


You can try to activate the automatic resolution setting or .inf operation, etc. under XP.
Floor 12 Posted 2007-04-24 00:04 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
There are many external commands. It depends on whether you are willing to use them.
Floor 13 Posted 2010-01-29 11:19 ·  中国 河南 南阳 联通
新手上路
Credits 1
Posts 1
Joined 2008-11-16 20:24
17-year member
UID 131178
Gender Male
Status Offline
It seems it's okay. I downloaded it before. You can search on Baidu.
Floor 14 Posted 2010-02-20 17:02 ·  中国 广东 深圳 福田区 电信
新手上路
Credits 6
Posts 7
Joined 2010-02-16 17:01
16-year member
UID 160716
Gender Male
Status Offline
Floor 15 Posted 2010-12-17 13:38 ·  中国 湖北 宜昌 电信
新手上路
Credits 1
Posts 1
Joined 2010-12-07 19:19
15-year member
UID 178881
Gender Male
Status Offline
If there is, help pass one 756399151@qq.com
Forum Jump: