질문과 답변

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 12392
RMMV 조건분기 스크립트에 and, or 사용하는 방법? 4 몽롱하다 2018.01.20 204
RMVXA 이벤트 질문있습니다. 2 천지설화 2018.01.20 90
RMVXA 제가 질문을 잘못했네요. Rpgvxace스크립트 찾습니다. 2 file 으으아앙 2018.01.20 171
RMMV [스크립트] 앞부분 padding과 가운데 정렬 1 file 몽롱하다 2018.01.22 141
RMMV 패럴랙스 맵핑을 이용한 그림변경(?) 하는방법 4 file 비공개  2018.01.22 409
RMVXA 궁금해서 질문을 합니다. 3 file 비밀아이 2018.01.23 104
RMMV Hp가 다 닳았을 때 말고도 다른 수치가 0이 되었을때 상태이상을 추가하는 법이 있나요? 2 pdm0822 2018.01.24 121
RMMV MV 진행불가 오류요 9 file 일반적잉간 2018.01.24 247
기타 윈도우 XP에서 사용 가능한 툴 2 N-Dolphin 2018.01.24 297
RMMV 폰트 변경질문 3 file 일반적잉간 2018.01.25 410
RM2k3 시야 시스템을 만들었는데 이미지가 잘려서 나와요. 2 file 인큐버스 2018.01.25 225
RMVXA vxace 이벤트가 자꾸 나옵니다 1 아고 2018.01.25 79
RMMV 스킬 계산식에 랜덤한 데미지를 입히고 싶습니다. 2 햄글 2018.01.28 213
RMMV 능력치 수치를 0으로 설정하는 방법이 있나요? 1 햄글 2018.01.29 118
기타 스팀에서 파는 프로그램 뭐가 더 나은가욥? 2 미곰 2018.01.29 104
사이트 이용 파일을 업로드하려는데 실황과 이차창작에 대한 정확한 뜻을 알고싶습니다. 2 김용암 2018.01.30 176
기타 mv 버전 2 미곰 2018.02.01 96
RMMV RPG MV 타일셋,캐릭터 질문 별로못해 2018.02.01 189
기타 패러랙스먭핑 file 미곰 2018.02.01 72
기타 RPG VX 배포게임 실행 오류 도보park 2018.02.01 159
Board Pagination Prev 1 ... 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 ... 516 Next
/ 516