기타
2010.01.06 20:48

RM Web Browser

조회 수 2560 추천 수 0 댓글 3
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
Extra Form
출처 Made by Berka
사용/적용순서 1. 첨부파일로 올라와 있는 dll 파일을 게임을 제작중인 폴더에 내려받습니다.
2. 스크립트를 넣으신 후 불러오실 때는 다음과 같이 입력합니다.
Net.browser("사이트 주소")

스크린샷

 sample.JPG  

스크립트

1. 첨부파일로 올라와 있는 dll 파일을 게임을 제작중인 폴더에 내려받습니다.
2. 스크립트를 넣으신 후 불러오실 때는 다음과 같이 입력합니다.
Net.browser("사이트 주소")

 #===============================================================================
#                              RM Web Browser                             4/8/09
#-------------------------------------------------------------------------------
#  par Berka                        v 1.0                           rgss 1 & 2        
#-------------------------------------------------------------------------------
# Display a web browser in the rgss player.
#  - NEED the cwebpage.dll. It HAS TO be placed on the root of the project.
#  - Esc to close the browser, F5, Back keys
#  - Clic on the maximize button to resize the window
#  call: Net.browser("http://rpgmakervx.1fr1.net")
#===============================================================================

wdll="cwebpage.dll"
GPPS = Win32API.new('kernel32', 'GetPrivateProfileString', 'pppplp', 'l')
FW   = Win32API.new('user32',   'FindWindow',              'pp',     'i')
SWL  = Win32API.new('user32',   'SetWindowLong',           'lll',    'l')
GCR  = Win32API.new('user32',   'GetClientRect',           'lp',     'i')
GAKS = Win32API.new('user32',   'GetAsyncKeyState',        'i',      'i')
EBO  = Win32API.new(wdll,       'EmbedBrowserObject',      'l',      'i')
DHP  = Win32API.new(wdll,       'DisplayHTMLPage',         'lp',     'i')
RB   = Win32API.new(wdll,       'ResizeBrowser',           'lll',    'i')
UEBO = Win32API.new(wdll,       'UnEmbedBrowserObject',    'l',      'l')
DPA  = Win32API.new(wdll,       'DoPageAction',            'll',     'l')
def handle
  GPPS.call("Game","Title","",title="\0"*256,256,".//Game.ini")
  FW.call("RGSS Player",title.delete!("\0"))
end

SWL.call(handle,-16,0x10C70000|0x00080000)

def dimensions
  GCR.call(handle,rect=[0,0,0,0].pack('l4'))
  rect.unpack('l4')[2..3]
end
module Net
  def self.browser(url)
    EBO.call(handle)
    DHP.call(handle,url)
    RB.call(handle,*dimensions)
    loop do
      break if GAKS.call(0x1b)&0x01==1
      DPA.call(handle,0)if GAKS.call(0x08)&0x01==1
      DPA.call(handle,4)if GAKS.call(0x74)&0x01==1
      RB.call(handle,*dimensions)
    end
    UEBO.call(handle)
  end
end

 

dll 파일 (필수사항)

cwebpage.dll

 

출처 : http://www.rpgrevolution.com/forums

 

주의 : 본 게시물의 스크랩을 일절 금지합니다. (스크립트 제작자의 허락을 득한 후에 스크랩이 가능하도록 되어있습니다.)


 

  • profile
    니오티 2010.01.07 09:10

    오, 이런걸로, 게임내 결재시스템이라든지 그런걸 만들어도 유용하게 쓰일것같네요

  • ?
    키리시마 2010.07.28 01:10

    누가 이런 기발한 생각을....

  • ?
    미니 2010.10.17 17:15

    오 좋은거군요 당장 써보겠습니다.


List of Articles
분류 제목 글쓴이 날짜 조회 수 추천 수
전투관련 전투시 적이 맞을경우 등 상세정보를 표시합니다 file ruby 2010.01.09 1924 1
메뉴관련 링매뉴 프론트뷰 전투 3 file ruby 2010.01.09 4108 0
메뉴관련 세이브화면 변환 3가지 7 file ruby 2010.01.09 3955 0
맵관련 필드의 미니맵을 생성합니다 ! 1 file ruby 2010.01.09 2994 0
기타 RM Web Browser 3 file 독도2005 2010.01.06 2560 0
Board Pagination Prev 1 2 3 Next
/ 3

Copyright ⓒ Nioting All Rights Reserved. (since 1999)    개인정보
        

Fatal error: Cannot access property sessionController::$lifetime in /web/old/xe/modules/session/session.controller.php on line 45