질문과 답변

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 12451
RMVXA 타일을 새로 추가했는데 안움직여요. 1 A구몽 2016.06.16 137
RMVXA 스킬 시전시 플레이어의 입력을 받게 하고 싶습니다. 4 도파민 2017.07.24 137
RMVXA 이름 입력의 처리 2 Arees 2017.02.20 137
스크립트 사용 RMVXA 랜덤으로 타이틀 화면이 바뀌는 vxace 스크립트 있나요? 싸코 2020.06.28 137
RMVXA 메세지 창을 띄워 놓은 채로 조작 가능하게 2 2016.07.12 138
RMVXA 문자입력 한글화 질문 입니당 4 file 파랑빛 2016.07.15 138
RMVXA VXA 환경변수 취득 관련 질문을 하고 싶어요! 2 file 안모리 2018.04.30 138
RMVXA protection error 103이라는 에러가 떠요 file Mixnuts 2015.05.11 138
RMVXA 대쉬 기능 사용 시 적의 이동속도가 빠르게 변하는 법 2 707 2018.08.19 138
RMVXA 설정해놓은 것과 다른 그래픽이 나옵니다. 2 file 에이스 2015.01.15 138
RMVXA 스크립트가 실행된 것을 인식하는 방법 1 흰강아지 2015.01.23 138
RMVXA parallex타일이뭔가요? 1 rc 2015.10.09 138
RMVXA RPG VX ACE 라이트 버전을 사용하시는 분 계신가요? 1 hyunseo1987 2016.02.16 138
RMVXA 최대 hp에 변수를 대입 구륨 2016.06.09 138
RMVXA 오브젝트의 모습이 변하는 이벤트 2 레노 2018.10.22 138
RMVXA 글씨 크기가 찌그러지는 현상 1 file 겜맨602 2017.08.01 138
에러 해결 RMVXA 프로세스 작성에 실패했습니다? file 김빡빡 2019.07.22 138
스크립트 사용 RMVXA 외국 게임에 적용된 스크립트를 복사하는데 오류가 생깁니다. 3 file 592 2020.10.08 138
턴제 전투 RMVXA 턴제 전투 메뉴에서 공격 기능을 없애고 싶습니다 file 오황불 2021.01.04 138
RMVXA 캐릭터 4방향 이동에서 2방향 이동으로 바꿀수있나요? 2 구상꾼 2018.05.03 139
Board Pagination Prev 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 149 Next
/ 149