Please Help, i've been searching in all forums

Discussion in 'RGSS Script Requests' started by Exodos, Feb 19, 2019.

  1. Exodos

    Exodos Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMXP
    Please Help, i've been searching in all forums this script but no sucess



    I want to find this script, I've looked everywhere, apparently he open a
    Brazilian PRGmaker forum that has been deactivated for years, I can not believe that the script died with the forum

    sorry if thread location is wrong
     
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,802
    Likes Received:
    10,585
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to RGSS Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. Andar

    Andar Veteran Veteran

    Messages:
    28,447
    Likes Received:
    6,492
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    please describe what that script does, a lot of people here on the forum can neither access videos nor understand brazilian
     
    #3
  4. CaRa_CrAzY

    CaRa_CrAzY Undefined Custom Title Veteran

    Messages:
    37
    Likes Received:
    16
    Location:
    São Paulo - Brazil
    First Language:
    Portuguese
    Primarily Uses:
    Other
    #4
    Exodos likes this.
  5. Exodos

    Exodos Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMXP
    this can help, but you see in video he use just 4 scripts aparentely, one named InternetExplorer, u already see this anyplace?
     
    #5
  6. Exodos

    Exodos Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMXP
    heeeeelp
     
    #6
  7. Andar

    Andar Veteran Veteran

    Messages:
    28,447
    Likes Received:
    6,492
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    If you want help, then you need to answer our questions. We only ask questions if we need the answers to help you.

    So
     
    #7
  8. Exodos

    Exodos Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMXP
    he just enter a site like a browser, but in rpgmaker project, with some script
     
    #8
  9. Andar

    Andar Veteran Veteran

    Messages:
    28,447
    Likes Received:
    6,492
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    that is no "just", that is actually quite complex. and since RMXP is very old and a lot of its community is gone I don't know if anyone still has such a complex script that turns RMXP into a browser.

    You probably have better chances to look for a script command that opens a webadress outside RMXP in the regular browser.
     
    #9
    Exodos likes this.
  10. DerVVulfman

    DerVVulfman Resident Werewolf Veteran

    Messages:
    304
    Likes Received:
    149
    First Language:
    English
    Primarily Uses:
    RMXP
    Erm... It took me 10 minutes to do a search for it after reading this thread. And it took 10 minutes because I have dialup. XD

    Thread Link:
    http://www.pokemonscriptproject.com/t6977-Script-Navigateur-de-Web-de-RMXP-PSP-SK-aussi.htm

    Required DLL:
    http://www.mediafire.com/download.php?0z1kzzlzwdm

    Script:
    Code:
    #==============================================================================#
    #                              RMXP/RMVX Web Browser                           #
    #------------------------------------------------------------------------------#
    #  Original script by Berka                                                    #
    #  Modified by Armorphor (aka CollosalPokemon)                                 #
    #  Version: 2.1                                                                #
    #  Date: 04.08.2009                                                            #
    #  Last Modification: 03.01.2010                                               #
    #  - DON'T POST THIS SCRIPT ANYWHERE WITHOUT PERMISSION.                       #
    #  - GIVE CREDITS WHERE THEY ARE NEEDED.                                       #
    #------------------------------------------------------------------------------#
    # HOWTO:                                                                       #
    #                                                                              #
    #  - Copy WebBrowser.dll to your /Data/ folder.                                #
    #  - To close the browser you can use the Esc, F5, or the Back keys            #
    #  - If you're using VX then change "$RMXP = true" to "$RMXP = false" otherwise#
    #  DON'T change it.                                                            #
    #                                                                              #
    # Current Bugs/Glitches:                                                       #
    #                                                                              #
    # - Page is black if the mouse does not click on a spot that does something.(?)#
    # - Can't guarantee it'll work with the SDKs but I don't know why it wouldn't  #
    # b/c it doesn't alias anything in RMXP or RMVX that has to do with anything   #
    # the SDK uses. But still, not tested yet.                                     #
    #                                                                              #
    # Removed Features:                                                            #
    #                                                                              #
    # - Resizing the Game Window. Reason: Not ideal for other scripts and processes#
    #==============================================================================#
    # Changelog:                                                                   #
    #                                                                              #
    # v1.0 (04.08.2009) (Public)                                                   #
    #    --> Initial Release (For RPG Maker VX and NOT RPG Maker XP)               #
    #                                                                              #
    # v2.0 (02.25.2010) (Not Public)                                               #
    #    --> Support for RMXP brought. (Albeit a bit buggy)                        #
    #    --> Rewritten details behind the hashes (#)                               #
    #    --> Renamed DLL and checking if you have it (Ensures the script can run)  #
    # v2.1 (03.01.2010) (Public)                                                   #
    #    --> Patch created so it is guarantee to work in RMVX and RMXP.            #
    #    --> Maintenance.                                                          #
    #==============================================================================#
    #  Call using: Net.browser("URL")                                              #
    #  Of course replace URL with a URL to go to.                                  #
    #==============================================================================#
    
    class Win32API
     @@RGSSWINDOW=nil
     @@GetCurrentThreadId=Win32API.new('kernel32','GetCurrentThreadId', '%w()','l')
     @@GetWindowThreadProcessId=Win32API.new('user32','GetWindowThreadProcessId', '%w(l p)','l')
     @@FindWindowEx=Win32API.new('user32','FindWindowEx', '%w(l l p p)','l')
     def Win32API.SetWindowText(text)
       hWnd =  pbFindRgssWindow
       swp = Win32API.new('user32', 'SetWindowTextA', %(l, p), 'i')
       swp.call(hWnd, text)
     end
     # Added by Peter O. as a more reliable way to get the RGSS window
     def Win32API.pbFindRgssWindow
      return @@RGSSWINDOW if @@RGSSWINDOW
      processid=[0].pack('l')
      threadid=@@GetCurrentThreadId.call
      nextwindow=0
      begin
       nextwindow=@@FindWindowEx.call(0,nextwindow,"RGSS Player",0)
       if nextwindow
         wndthreadid=@@GetWindowThreadProcessId.call(nextwindow,processid)
         if wndthreadid==threadid
          @@RGSSWINDOW=nextwindow
          return @@RGSSWINDOW
         end
       end
      end until nextwindow==0
      raise "Can't find RGSS player window"
      return 0
     end
     def Win32API.GetPrivateProfileString(section, key)
       val = "\0"*256
       gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
       gps.call(section, key, "", val, 256, ".\\Game.ini")
       val.delete!("\0")
       return val
     end
     def Win32API.SetWindowPos(w, h)
       hWnd =  pbFindRgssWindow
       windowrect=Win32API.GetWindowRect
       clientsize=Win32API.client_size
       xExtra=windowrect.width-clientsize[0]
       yExtra=windowrect.height-clientsize[1]
       swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
       win = swp.call(hWnd, 0, windowrect.x, windowrect.y,
         w+xExtra,h+yExtra, 0)
       return win
     end
     def Win32API.client_size
       hWnd =  pbFindRgssWindow
       rect = [0, 0, 0, 0].pack('l4')
       Win32API.new('user32', 'GetClientRect', %w(l p), 'i').call(hWnd, rect)
       width, height = rect.unpack('l4')[2..3]
       return width, height
     end
     def Win32API.GetWindowRect
       hWnd =  pbFindRgssWindow
       rect = [0, 0, 0, 0].pack('l4')
       Win32API.new('user32', 'GetWindowRect', %w(l p), 'i').call(hWnd, rect)
       x,y,width, height = rect.unpack('l4')
       return Rect.new(x,y,width-x,height-y)
     end
    end
    
    if FileTest.exist?("Data/WebBrowser.dll") #Ensures n00bs didn't delete the webpage DLL.
      wdll='Data/WebBrowser.dll'
    else
      raise ArgumentError.new(_INTL("Error: Web Browsing DLL somehow not found.\nContact the game's owner if the problem persists."))
    end
    
    $RMXP = true # If true you're using RMXP, if false, you're using RMVX.(YOU need to edit this)
    GPPS  = Win32API.new('kernel32', 'GetPrivateProfileString', 'pppplp', 'l')
    FW    = Win32API.new('user32','FindWindowEx', '%w(l l p p)','l')
    GCR   = Win32API.new('user32',   'GetClientRect',           'lp',     'i')
    GAKS  = Win32API.new('user32',   'GetAsyncKeyState',        'i',      'i')
    TID   = Win32API.new('kernel32','GetCurrentThreadId', '%w()','l')
    WTPID = Win32API.new('user32','GetWindowThreadProcessId', '%w(l p)','l')
    EBO   = Win32API.new(wdll,       'EmbedBrowserObject',      'l',      'i')
    DHP   = Win32API.new(wdll,       'DisplayHTMLPage',         'lp',     'i')
    UEBO  = Win32API.new(wdll,       'UnEmbedBrowserObject',    'l',      'l')
    DPA   = Win32API.new(wdll,       'DoPageAction',            'll',     'l')
    if $RMXP==true
    def handle
      @@RGSSWINDOW=nil
      processid=[0].pack('l')
      threadid=TID.call
      nextwindow=0
      begin
       nextwindow=FW.call(0,nextwindow,"RGSS Player",0)
       if nextwindow
         wndthreadid=TID.call
         if wndthreadid==threadid
          @@RGSSWINDOW=nextwindow
          return @@RGSSWINDOW
         end
       end
      end until nextwindow==0
      GPPS.call("Game","Title","",title="\0"*255,255,".//Game.ini")
      FW.call(0,nextwindow,"RGSS Player",title.delete!("\0"))
    end
    
    def dimensions
      return Win32API.client_size
    end
    
    module Net
      def self.browser(url)
        EBO.call(handle)
        DHP.call(handle,url)
         loop do
          sleep(0.1)
          EBO.call(handle)
          DPA.call(handle,0)if GAKS.call(0x08)&0x01==1
          DPA.call(handle,4)if GAKS.call(0x74)&0x01==1
          Graphics.update
          EBO.call(handle)
          DPA.call(handle,0)if GAKS.call(0x08)&0x01==1
          DPA.call(handle,4)if GAKS.call(0x74)&0x01==1
          Input.update
          break if GAKS.call(0x1b)&0x01==1
         end
     UEBO.call(handle)
     end
    end
    else
    def handle
      GPPS.call("Game","Title","",title="\0"*256,256,".//Game.ini")
      FW.call("RGSS Player",title.delete!("\0"))
    end
    
    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
      end
    
     
    #10
    pixelmaker2d and Exodos like this.
  11. Exodos

    Exodos Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMXP

    THank you so much
     
    #11

Share This Page