mIRC Home    About    Download    Register    News    Help

Print Thread
#86025 09/06/04 03:06 AM
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
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?


- Andrew Berquist, Windfyre Network
#86026 09/06/04 03:27 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
It does help.. But i dont know quite how to get the dll into my.. mrc file to make it display right.


- Andrew Berquist, Windfyre Network
#86028 09/06/04 03:53 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
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.


- Andrew Berquist, Windfyre Network
#86030 09/06/04 04:57 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
The code seems to work. yet the page never loads...


- Andrew Berquist, Windfyre Network
#86033 10/06/04 03:25 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
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?


- Andrew Berquist, Windfyre Network
#86035 10/06/04 04:13 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
No firewall at all.. Did you use 2.92? or 2.9?


- Andrew Berquist, Windfyre Network
#86037 10/06/04 04:34 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
dll version 2.92 yes

#86038 10/06/04 04:37 AM
Joined: Jun 2003
Posts: 56
G
Babel fish
OP Offline
Babel fish
G
Joined: Jun 2003
Posts: 56
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.


- Andrew Berquist, Windfyre Network
#86039 10/06/04 05:42 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
That code is for V2.92 of the DLL and works in V6.14 mIRC.


Link Copied to Clipboard