mIRC Homepage
Posted By: Gamersad Website Display in mIRC - 09/06/04 03:06 AM
I know there is a way to display websites in an MIRC type web browser.. Howver i dont want the Back and Forward part.. I just want to be able to see HTML in a window.. I dont know what to do to get the website to display within the window.. Any help?
Posted By: The_Game Re: Website Display in mIRC - 09/06/04 03:27 AM
You will need to use Necroman's nHTMLn_2.92.dll which can be found at mircscripts.org in the DLL section. Then you can use it along with a little script to get this to work however way you want it to.

Also, you can find various "mIRC Explorers" at the same site I gave you. I hope this is enough information to point you into the right direction.
Posted By: Gamersad Re: Website Display in mIRC - 09/06/04 03:35 AM
It does help.. But i dont know quite how to get the dll into my.. mrc file to make it display right.
Posted By: The_Game Re: Website Display in mIRC - 09/06/04 03:53 AM
can you post what you have in the mrc file so that others can see what problem you are running into? Assuming you already written the code...
Posted By: Gamersad Re: Website Display in mIRC - 09/06/04 04:09 AM
Well i havn't yet writen it. I've never wrote something like this so i dont know quite where to start off. Thats the main problem.
Posted By: The_Game Re: Website Display in mIRC - 09/06/04 04:57 AM
I did a little searching here on this forum and came up with this thread. It shows somewhere on there an alias on how you can use this dll to manipulate a web window. I have yet to discover a tutorial that explains how people can use this dll.

Hope this helps
Posted By: Watchdog Re: Website Display in mIRC - 09/06/04 01:41 PM
Put the DLL in the root directory of mIRC and then add the following code to aliases.ini

Code:
ie {
  window -aek0p @Browser 0 0 800 600
  var %ws.1 $dll(nHTMLn.dll,attach,$window(@Browser).hwnd) 
  var %ws.2 $dll(nHTMLn.dll,navigate,http://iserv.com.au/)
  editbox @Browser http://iserv.com.au/
}
That allows the page to open (in this example, my website) when you type /ie on a channel or status or whereever.

I then added this in a remotes file as an optional extra:

Code:
ON *:INPUT:@Browser: {
  var %ws.1 $dll(nHTMLn.dll,attach,$window(@Browser).hwnd) 
  var %ws.2 $dll(nHTMLn.dll,navigate,$1)
  if (http:// isin $1) {
    editbox @Browser $1
  }
  if (http !isin $1 && .htm !isin $1 && .asp !isin $1 && .cfm !isin $1 && .pl !isin $1 &&.php !isin $1) {
    editbox @Browser http:// $+ $1 $+ /
  }
  if (http isin $1 && .htm !isin $1 && .asp !isin $1 && .cfm !isin $1 && .pl !isin $1 &&.php !isin $1) {
    editbox @Browser $1
  }
  if (http !isin $1 && .htm isin $1 || .asp isin $1 || .cfm isin $1 || .pl isin $1 || .php isin $1) {
    editbox @Browser http:// $+ $1 $+ /
  }
  if (http isin $1 && .htm isin $1 || .asp isin $1 || .cfm isin $1 || .pl isin $1 || .php isin $1) {
    editbox @Browser $1
  }
}
This lets you navigate to new URLs using the editbox in the browser window. The code could be more efficient but it does work, with the addition that URLs get "completed" similar to the way a web browser does it.

The downside seems to be that the mIRC editbox cuts off the bottom 11 pixels of the page, including the 'down' arrow in the scrollbar but that's life.
Posted By: Gamersad Re: Website Display in mIRC - 09/06/04 10:53 PM
The code seems to work. yet the page never loads...
Posted By: The_Game Re: Website Display in mIRC - 10/06/04 03:25 AM
Just out of curiosity, but has anyone been able to locate a documented tutorial or help file explaining the nHTMLn_2.92.dll on the internet? I was just wondering so that I can make note of this for future reference.
Posted By: Gamersad Re: Website Display in mIRC - 10/06/04 04:07 AM
Its odd because it loads all up and looks like its going to load... Then stops loading. and you can hover the mouse over spots where the links would be.... yet there are no images and no text. I noticed "Dan" the creator of the 2.92 version of the dll. That it *WONT* work with 6.0x MIRC versions.. So maybe i will test it in an old mIRC version.. What tools do people use to write DLL's?
Posted By: The_Game Re: Website Display in mIRC - 10/06/04 04:13 AM
I just tested that code Watchdog gave you using mIRC 6.15 and it should work. You don't by chance have a firewall running that may be preventing mIRC from accessing the internet do you? Just a thought. I don't know how to make dll's so I couldnt tell ya how they get made sorry.
Posted By: Gamersad Re: Website Display in mIRC - 10/06/04 04:29 AM
No firewall at all.. Did you use 2.92? or 2.9?
Posted By: The_Game Re: Website Display in mIRC - 10/06/04 04:34 AM
dll version 2.92 yes
Posted By: Gamersad Re: Website Display in mIRC - 10/06/04 04:37 AM
Can you by any chance paste me what you inputed.. I'm having some problems i wanna compair it to what i made to see if i made a mistake.
Posted By: The_Game Re: Website Display in mIRC - 10/06/04 05:42 AM
Scroll up to the post by Watchdog, all i did was copy that into a clean install of mIRC in the remote tab of the script editor. I used exactly what was posted.
Posted By: Watchdog Re: Website Display in mIRC - 10/06/04 06:49 AM
That code is for V2.92 of the DLL and works in V6.14 mIRC.
© mIRC Discussion Forums