mIRC Home    About    Download    Register    News    Help

Print Thread
#86025 09/06/04 03:06 AM
G
Gamersad
Gamersad
G
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?

#86026 09/06/04 03:27 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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.

Last edited by The_Game; 09/06/04 03:29 AM.
#86027 09/06/04 03:35 AM
G
Gamersad
Gamersad
G
It does help.. But i dont know quite how to get the dll into my.. mrc file to make it display right.

#86028 09/06/04 03:53 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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...

#86029 09/06/04 04:09 AM
G
Gamersad
Gamersad
G
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.

#86030 09/06/04 04:57 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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

#86031 09/06/04 01:41 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
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.

#86032 09/06/04 10:53 PM
G
Gamersad
Gamersad
G
The code seems to work. yet the page never loads...

#86033 10/06/04 03:25 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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.

#86034 10/06/04 04:07 AM
G
Gamersad
Gamersad
G
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?

#86035 10/06/04 04:13 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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.

#86036 10/06/04 04:29 AM
G
Gamersad
Gamersad
G
No firewall at all.. Did you use 2.92? or 2.9?

#86037 10/06/04 04:34 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
dll version 2.92 yes

#86038 10/06/04 04:37 AM
G
Gamersad
Gamersad
G
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.

#86039 10/06/04 05:42 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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.

#86040 10/06/04 06:49 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
That code is for V2.92 of the DLL and works in V6.14 mIRC.


Link Copied to Clipboard