查看: 2243|回复: 3

[已经过期] 有沒有可以降低XP分辨率的方法?

[复制链接]
梦石
0
星屑
6830
在线时间
1251 小时
注册时间
2011-12-18
回帖
1127
发表于 2016-9-23 10:25:07 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
求可降低XP分辨率的工程....
我另一篇類似的帖有人說有...
但後來沒有再理我...
希望是全屏時遊戲畫面可以拓展到整個螢幕的...就算保持原本的比例也沒關係....
梦石
0
星屑
125
在线时间
171 小时
注册时间
2014-4-14
回帖
135
发表于 2016-9-23 19:37:34 | 显示全部楼层
本帖最后由 2357691704 于 2016-9-23 20:12 编辑

这样(看图片)??
给。新建脚本插入mian之前。
[pre lang="ruby"]# 防止 F12 后再次执行
if $START_NOCAPTION == nil
  $START_NOCAPTION = 1
  getPrivateProfileString = Win32API.new("kernel32", "GetPrivateProfileString", ['P', 'P', 'P', 'P', 'L', 'P'], 'L')
  findWindow = Win32API.new("user32", "FindWindow", ['P', 'P'], 'L')
  getWindowLong = Win32API.new("user32", "GetWindowLong", ['L', 'I'], 'L')
  setWindowLong = Win32API.new("user32", "SetWindowLong", ['L', 'I', 'L'], 'L')
  getSystemMetrics = Win32API.new("user32", "GetSystemMetrics", ['I'], 'I')
  setWindowPos = Win32API.new("user32", "SetWindowPos",['L', 'L', 'I', 'I', 'I', 'I', 'I'], 'L')

  # 分配字符串缓冲区
  title = " " * 128
  # 通过读取 Game.ini 获取窗口标题
  getPrivateProfileString.call("game", "Title", "", title, 128, "./game.ini")
  # 通过窗口类名和标题获取窗口句柄
  hWnd = findWindow.call('RGSS Player', title)
  # 获取窗口样式
  style = getWindowLong.call(hWnd, -16)
  # 去掉 WS_CAPTION 样式
  style &= ~0x00C00000
  # 应用新样式
  setWindowLong.call(hWnd, -16, style)
  # 获取屏幕尺寸
  scr_width = getSystemMetrics.call(0)
  scr_height = getSystemMetrics.call(1)
  # 更新窗口框架并居中
  setWindowPos.call(hWnd, 0, (scr_width - 1366), (scr_height - 768), 1366, 768, 0x0020)
end[/pre]
捕获.PNG

点评

效果應該不對~ 是要全部分辨率降低/減少....而不是縮小化面而已  发表于 2016-10-26 13:25

评分

参与人数 1星屑 +66 收起 理由
hys111111 + 66 效果貌似不对吧

查看全部评分

Vanyogin
回复

使用道具 举报

梦石
0
星屑
6830
在线时间
1251 小时
注册时间
2011-12-18
回帖
1127
 楼主| 发表于 2016-12-1 23:24:18 | 显示全部楼层
沒有嗎?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部