질문과 답변

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 21138
RMVX vx게임 일본어로 되어있는데 한글화 하는법쫌.... 4 Aroma 2014.01.22 911
RMVX vx거대캐릭터 넣는법 2 잡초더미 2011.01.23 736
기타 vx가 좋을까요? xp가 좋을까요? 4 몽실년 2010.12.14 995
RMVX vx가 실행이 안됩니다. 이경로 2015.08.30 161
RMVX VXmmorpg풍 데이타폴더에서 스크립트좀 올려주실분있나요ㅠㅠ 4 베리베리붸리뷁 2011.01.25 573
RMVXA vxa하면서 이런오류는 처음입니다 도와주세요!@ 2 file 기커스토리 2014.12.19 279
RMVXA vxa프로젝트파일이 열리지 않습니다. 3 file 죽은노예 2013.11.02 1119
RMVXA VXA타이틀 화면 움짤로 만드는법 2 온리 2015.05.24 399
RMVXA VXA전투시 화면 상단에뜨는 문자의 한글화에 대해 알고싶습니다. 1 file st게카 2018.11.12 98
RMVXA VXA이벤트 어떻게 중지시키죠?? 2 김정훈입니다 2014.09.01 534
RMVXA vxa의 타일셋 질문 2 떡좀쪄봐 2013.03.26 804
RMVXA VXA의 최대 해상도 2 TheEK 2012.12.03 1678
VXA의 데이터 베이스 한글화를 못찾겠네요;; 2 FNS키리토 2013.03.02 2328
기타 Vxa와 xp의 차이점? 3 ikmyung 2018.08.11 159
제작툴 구매 툴선택 VXA와 MV의 구체적인 차이점 2 GIGA46 2021.09.16 278
RMVXA VXA에서는 건물레이어를 통과할수있게 하려면 어떡해야하나요? 2 나펫 2015.01.28 216
RMVXA VXA에서 파티 리더 인식을 시키려면 어떻게? 2 셀렉션 2014.01.22 781
RMVXA VXA에서 캐릭터 모션을 넣는 방법이 궁금합니다. 1 흰강아지 2014.03.27 808
RMVXA vxa에서 장신구를 2개 착용할 순 없나요? 6 시캐 2014.01.16 925
RMVXA VXA에서 자동전투에 대한 의문이 있습니다 3 간파더 2012.05.29 1765
Board Pagination Prev 1 ... 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 ... 518 Next
/ 518