Project1
标题:
求VA窗口大小脚本,我要的是那种
[打印本页]
作者:
yangjunyin2002
时间:
2012-11-10 14:06
标题:
求VA窗口大小脚本,我要的是那种
本帖最后由 Mic_洛洛 于 2012-11-10 14:42 编辑
就是《默砂之歌》前篇章游戏里的那种,我在主站找的VA超级脚本整合里面的变大后,这个窗口就有点往右下角了,我想要那种变更后窗口居中在屏幕的,并且不要那种窗口大了,但是里面的内容没放大的脚本。。。
作者:
yangjunyin2002
时间:
2012-11-10 14:07
补充:这是VX的变更窗口的脚本,用这种的话是可以让窗口变大并居中而且内容也会缩放的,不过我还是想要VA的啊。
#~ #-----------------------------------------------------------------------------
#~ # ● 只是用来窗口大小变更的
#~ # ○ 来源秀秀Win32API教程之一(基础篇)
#~ #-----------------------------------------------------------------------------
#~ class Win32API
#~ GAME_INI_FILE = ".\\Game.ini"
#~ def Win32API.GetPrivateProfileString(section, key)
#~ # 初始化
#~ val = "\0"*256
#~ gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
#~ gps.call(section, key, "", val, 256, GAME_INI_FILE)
#~ val.delete!("\0")
#~ return val
#~ end
#~ def Win32API.FindWindow(class_name, title)
#~ fw = Win32API.new('user32', 'FindWindow', %(p, p), 'i')
#~ hWnd = fw.call(class_name, title)
#~ return hWnd
#~ end
#~ HWND_TOP = 0
#~ HWND_TOPMOST = -1
#~ SWP_NOMOVE = 2
#~ def Win32API.SetWindowPos(hWnd, w, h)
#~ swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
#~ ok = swp.call(hWnd, HWND_TOP, 200, 200, w, h, SWP_NOMOVE)
#~ return ok
#~ end
#~ end
#~ title = Win32API.GetPrivateProfileString("Game", "Title")
#~ hWnd = Win32API.FindWindow("RGSS Player", title)
#~ ok = Win32API.SetWindowPos(hWnd,800,640)
#~ if(ok == 0)
#~ p "変更失敗"
#~ end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1