질문과 답변

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 12442
RMVX 변수를 이름에 지정하는 방법 1 file 생수 2012.01.01 2735
RMVX 사이드뷰 스킬관련 질문 환상소설 2012.01.01 2468
RMVX 하아 침대를 깔면 위에 네모난 블럭이 .. 3 오니제작초딩 2012.01.01 2758
RMVX 주인공 투명하게 만드는법좀 물어볼게요 .. 1 오니제작초딩 2012.01.01 3300
RMVX 시작하자마자 대화창 뜨는것좀요 3 오니제작초딩 2011.12.31 2760
기타 몬스터 배치 1 초보자입돠 2011.12.31 3019
RMVX 뭐랄까.. 글씨 이벤트? 1 아이카 2011.12.31 2876
RMVX 주인공 모습 바꾸는 방법 좀 알려주세요.~ 1 레몬은시다 2011.12.31 3048
RMVXA ACE써본분들께 질문 3 환상소설 2011.12.31 3099
RMVX 스크립트 고수분들 질문 합니다 !!! 7 file 생수 2011.12.31 2350
기타 입문에 적합한 프로그램은 무엇인가요? 4 신기 2011.12.31 2507
RMVX 정답을 맞췄을 때랑 못 맞췄을때 구분하는 방법좀!! 5 file 생수 2011.12.30 1804
기타 툴 추천 2 센♬ 2011.12.30 2444
RMXP 완전중요) [제 게임 암호화 파일을 뚫는 법 알려주세요] 2 챔피언 2011.12.29 3428
RMXP 성곽(?) 맵칩 1 까멸 2011.12.29 2325
사이트 이용 RPG 2003.XP 다운로드는 어떻게 해여?? 1 진형준 2011.12.28 2702
RMXP SE가 재생 도중에 갑자기 끊기고 게임 렉이 심합니다. 1 CJYG* 2011.12.28 2313
RMVX 문 작용 애니메이션 처리를 고치려면 1 file 스탄즈 2011.12.28 2188
RMVX 몬스터 리젠 시키는 방법 5 file RASA 2011.12.27 1395
RM2k 대화창 반투명 만드는 법점.. 1 file 로드밸러 2011.12.27 2065
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