질문과 답변

Extra Form
  1. #Basic Window Resizer v1.1
  2. #----------#
  3. #Features: Allows you to resize the window to whatever size you like! (This is not
  4. #            like Graphics.resize, this will scale to fit)
  5. #
  6. #Usage:   Script calls:
  7. #           Window_Resize.r(width, height)     - Self-explanatory
  8. #           Window_Resize.f                    - fits the game window to monitor size
  9. #           Window_Resize.full                 - switches to full screen unless already fullscreened
  10. #           Window_Resize.window               - same as full but opposite
  11. #           Window_Resize.toggle               - toggles between full and window
  12. #
  13. #No Customization
  14. #
  15. #----------#
  16. #-- Script by: V.M of D.T
  17. #
  18. #- Questions or comments can be:
  19. #    given by email: sumptuaryspade@live.ca
  20. #    provided on facebook: http://www.facebook.com/DaimoniousTailsGames
  21. #   All my other scripts and projects can be found here: http://daimonioustails.weebly.com/
  22. #
  23. #--- Free to use in any project, commercial or non-commercial, with credit given
  24. # - - Though a donation's always a nice way to say thank you~ (I also accept actual thank you's)
  25.  
  26. SWPO = Win32API.new 'user32''SetWindowPos'['l','i','i','i','i','i','p']'i'
  27. WINX = Win32API.new 'user32''FindWindowEx'['l','l','p','p']'i'
  28. SMET = Win32API.new 'user32''GetSystemMetrics'['i']'i'
  29.  
  30. module Window_Resize
  31.   def self.r(width, height)
  32.     resw = SMET.call(0)
  33.     resh = SMET.call(1)
  34.     window_loc = WINX.call(0,0,"RGSS Player",0)
  35.     width +(SMET.call(5) + SMET.call(45)) * 2
  36.     height +(SMET.call(6) + SMET.call(45)) * 2 + SMET.call(4)
  37.     x = (resw - width) / 2; y = (resh - height) / 2
  38.     y = 0 if y < 0;x = 0 if x < 0
  39.     SWPO.call(window_loc,0,x,y,width,height,0)
  40.   end
  41.   def self.f
  42.     resw = SMET.call(0)
  43.     resh = SMET.call(1)
  44.     window_loc = WINX.call(0,0,"RGSS Player",0)
  45.     SWPO.call(window_loc,0,0,0,resw,resh,0)
  46.   end
  47.   def self.full
  48.     resw = SMET.call(0)
  49.     return unless resw > 640
  50.     toggle
  51.   end
  52.   def self.window
  53.     resw = SMET.call(0)
  54.     return unless resw <640
  55.     toggle
  56.   end
  57.   def self.toggle
  58.     keybd = Win32API.new 'user32.dll''keybd_event'['i''i''l''l']'v'
  59.     keybd.call 0xA4, 000
  60.     keybd.call 13000
  61.     keybd.call 13020
  62.     keybd.call 0xA4, 020
  63.   end
  64. end



이런 스크립트를 찾았는데 이걸 어떻게 사용하는지 모르겠네요
이게 게임창 사이즈 바꿀수있는 스크립트 맞나요? 

Comment '1'
  • ?
    페렐 2015.12.14 22:09
    넵 맞는 것 같습니다. 해상도가 아니라 창 크기 말씀하시는 거 맞으시죠?
    사용법은 위에 영어로 나와있네요. 저 명령어들을 이벤트에서 스크립트로 불러오면 실행됩니다.

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12447
RMVX 알려주세요 3 쯔꾸르만들껀데 2015.12.10 108
RMMV 전투시 기본적인 공격, 방어를 없앨 수 있나요 1 각구 2015.12.10 244
RMVXA 스크립트 내에 있는 변수 값을 이벤트로 바꾸려면 어떻게 해야 하나요? 3 file twoeye 2015.12.11 111
RMMV 이벤트를 스크립트로 변환할 수 있을까요? 2 게임잘날아가는닝겐 2015.12.11 218
기타 땅 갈라지게 하는법 1 쯔꾸르만들껀데 2015.12.11 157
RMMV 쯔꾸르 mv 체험판이 실행이 안됩니다. 4 대추야자 2015.12.11 290
RMMV 포맷후 체험판 다른이메일로 깔면 실행되나요? 1 환장 2015.12.12 102
RMVX 조사하는 방법 기본적인거요! 2 file 데냐 2015.12.12 182
RMVXA RMVXA XAS 스크립트에서 탄의 패턴을 좀더 다양하게 할수 없을까요? file 데크크래프트 2015.12.12 122
RMVXA vxace 게임 창크기 조절하는 스크립트질문좀할게요 1 상생 2015.12.13 336
RMVXA 서로 통과하면서 접촉도 가능하게하고싶습니다 3 file 아쳐 2015.12.13 129
RMVXA 장비한 아이템을 소지수에 포함하는 방법이 궁금합니다. 2 준준이 2015.12.14 172
RMVXA 이벤트 자동 진행 중에 벌어지는 현상에 대해 질문 드립니다. 1 file 류미엘 2015.12.14 124
RMVXA 전투화면 색조를 어떻게 변경하나요? file 천둥번들 2015.12.14 96
RMMV 맵상에서 캐릭터나 이벤트의 애니메이션 동작 프레임간격을 조절할 수 있는 방법이 없을까요? 1 공원소년 2015.12.14 198
RMVXA 경비 시스템에 대한질문 7 아쳐 2015.12.15 177
RMVX 스크립트 두개를 합쳐주실 수 있나요? file KAHP 2015.12.15 167
RMMV 앱으로 변환시 조이스틱 질문합니다. 2 ung 2015.12.15 167
RMMV 이벤트의 이벤트 인식 1 Crze 2015.12.17 109
RMXP 다른 플레이어와 대전 1 Fernandez 2015.12.17 134
Board Pagination Prev 1 ... 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 ... 516 Next
/ 516