질문과 답변

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 21133
RMVXA 스피드 변경 스크립트 8 게임잘날아가는닝겐 2015.07.20 154
RMVXA end가 몇개 필요하죠? 5 게임잘날아가는닝겐 2015.09.20 154
RMVXA 데미지가 안들어가요..ㅠ 2 기폭 2016.09.23 154
RMVXA XAS에서 원거리 무기 연사 할수 있게 만드는 방법 겜제작광 2015.09.23 154
기본툴 사용법 RMVXA 의자를 옮긴후 의자를 밟고 올라가는 이벤트를 만들고싶습니다. 2 LWH 2019.01.28 154
이벤트 작성 RMVXA 맵을 확대하는 이벤트도 만들 수 있나요? 2 머리큰두두 2022.07.21 154
에러 해결 RMVXA RGSS301.dll 파일 사라짐 오류 이름뭐하지 2023.12.31 155
기본툴 사용법 RMVXA 게임 도중에 타이틀을 바꾸고 싶어요 2 설님 2021.04.12 155
RMVXA 특정 아이템끼리 모아놓기 2 길라잡이 2015.06.21 155
RMVXA 닉네임 입력칸 1 소소아린 2015.08.23 155
RMVXA 메뉴를 열때 액터의 스탯과 장비까지 나오는 문구를 출력하고 싶습니다 1 file 코나별 2016.04.18 155
RMVXA 단축키 스크립트 만드는 것좀 알려주실분 계신가요 3 은현 2016.04.10 155
RMVXA 그림 이동 스크립트 질문입니다. 2 file revolutia 2016.06.16 155
RMVXA 조건 분기의 [액터가 XX 스킬을 알고 있다] 에 대해서 2 file 슈팅스타* 2017.07.12 155
RMVXA 이벤트 위치 오류 4 file SKT스피릿 2015.06.21 156
RMVXA 스크립트 에디터의 내용을 필드 이벤트에 있는 스크립트로 바꾸는 방법? 몽롱하다 2016.02.14 156
RMVXA 장비 착용상태에서 이벤트 구현 질문입니다 + 이벤트 버그? 2 file AccelHacker 2016.03.01 156
RMVXA 이벤트 후에 그래픽 표시 2 알리아 2016.05.17 156
RMVXA (재질문) 운 수치에 대한 공식을 변경하고 싶습니다. 1 투척민 2016.07.26 156
RMVXA 다른 컴퓨터는 스크립트 오류???? 도리 2016.10.21 156
Board Pagination Prev 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 150 Next
/ 150