Project1

标题: VX屏幕加强 [打印本页]

作者: 13790758417    时间: 2015-5-13 18:46
标题: VX屏幕加强
弄屏幕加大,有没有脚本!!!

弄个大屏游戏可以吗?

不可以,就算了.......{:8_461:}
作者: 妖精蕾贝卡    时间: 2015-5-14 07:43
  1. class Win32API
  2. GAME_INI_FILE = ".\\Game.ini"

  3. def Win32API.GetPrivateProfileString(section, key)
  4. val = "\0"*256
  5. gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
  6. gps.call(section, key, "", val, 256, GAME_INI_FILE)
  7. val.delete!("\0")
  8. return val
  9. end
  10. def Win32API.FindWindow(class_name, title)
  11. fw = Win32API.new('user32', 'FindWindow', %(p, p), 'i')
  12. hWnd = fw.call(class_name, title)
  13. return hWnd
  14. end
  15. HWND_TOP = 0
  16. HWND_TOPMOST = -1
  17. SWP_NOMOVE = 2

  18. def Win32API.SetWindowPos(hWnd, w, h)
  19. swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
  20. ok = swp.call(hWnd, HWND_TOP, 0, 0, w, h, SWP_NOMOVE)
  21. return ok
  22. end
  23. end
  24. #以下是分辨率变更
  25. title = Win32API.GetPrivateProfileString("Game", "Title")
  26. hWnd = Win32API.FindWindow("RGSS Player", title)
  27. #使用时X轴加6,Y轴加25,否则画面会变形
  28. ok = Win32API.SetWindowPos(hWnd, 646, 505)
  29. if(ok == 0)
  30. p "失败"
  31. end
复制代码
改變一下分辨率就行,但其它內容要自行修改




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1