mIRC Home    About    Download    Register    News    Help

Topic Options
#37388 - 20/07/03 07:22 PM id say a internet browser window so u can access
trigger Offline
Nutrimatic drinks dispenser

Registered: 20/07/03
Posts: 5
Loc: coventry, england
access the net through mirc smile also an inbuilt Mp3 player to play your mp3s smile
_________________________
"Of coure i Love Liam, But not as much as i Love Pot Noodles" - Noel Gallagher smile

Top
#37389 - 20/07/03 07:25 PM Re: id say a internet browser window so u can access
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
i noticed this is a feature suggestion but:
on www.mircscripts.org you can download nHTMLn.dll to open a website inside an @window.
_________________________
new username: tidy_trax

Top
#37390 - 20/07/03 07:33 PM Re: id say a internet browser window so u can access
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
Yes I can recommend nHTMLn.DLL as I have been using it for three years with no reliablility problems. As for an MP3 player, you can script this with minimal fuss.
_________________________
Induced IRC
irc.induced.net

Top
#37391 - 20/07/03 09:28 PM Re: id say a internet browser window so u can access
trigger Offline
Nutrimatic drinks dispenser

Registered: 20/07/03
Posts: 5
Loc: coventry, england
im new to mirc, how do i use the http, iv downloaded it please how do i install it? and is there an mp3 like winamp to attach to mirc?
_________________________
"Of coure i Love Liam, But not as much as i Love Pot Noodles" - Noel Gallagher smile

Top
#37392 - 20/07/03 09:45 PM Re: id say a internet browser window so u can access
ParaBrat Offline
Planetary brain

Registered: 07/12/02
Posts: 3127
Loc: BratLand
is there an mp3 like winamp to attach to mirc?

mIRC sends the request to play an mp3 to windows, which then handles the actual playing (mediaplayer). In any mIRC window, type /help mp3 to read about /splay
_________________________
ParaBrat @#mIRCAide DALnet

Top
#37393 - 21/07/03 04:19 AM Re: id say a internet browser window so u can access
trigger Offline
Nutrimatic drinks dispenser

Registered: 20/07/03
Posts: 5
Loc: coventry, england
cheers mate smile
_________________________
"Of coure i Love Liam, But not as much as i Love Pot Noodles" - Noel Gallagher smile

Top
#37394 - 21/07/03 05:29 AM Re: id say a internet browser window so u can access
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
There is a HTML based readme file included with nHTMLn.DLL - you will need to read that and understand how to call DLL's in mIRC scripts. I have a simple script below which may help and can be used as a guide. Place the DLL in the root directory in this case.
Code:
ie {
  window -aek0p @Browser 0 0 800 600
  var %bs.bs $dll(nHTMLn.dll,attach,$window(@Browser).hwnd) 
  var %bd.bd $dll(nHTMLn.dll,navigate,http://iserv.com.au/)
}
Place that in your aliases.ini file on a new line and make sure there's no other aliases beginning with the same command. Then just change the URL to whatever your home page is. The code under goes in a remotes file:
Code:
ON *:INPUT:@Browser: {
  var %bs.bs $dll(Scripts\TCOM\nHTMLn.dll,attach,$window(@Browser).hwnd) 
  var %bd.bd $dll(Scripts\TCOM\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 a new site with a normal mIRC edit box. It has some minor error management to allow URL's you go to to be displayed correctly, as per IE. Improve on it if you will, it's not perfect but does the job.

NOTES: The local variables merely silence the messages sent to Status WIndow by the DLL which confirm success or an error, if you want to see the msgs then just delete the "var %*" bit from both lines.

Only thing I don't like is the editbox cuts off the bottom 10pixels of a webpage which can mean the bottom arrow in the scrollbar can be 'hidden' behind the editbox but that's not big deal for me at the moment.
_________________________
Induced IRC
irc.induced.net

Top
#37395 - 21/07/03 05:57 PM Re: id say a internet browser window so u can access
trigger Offline
Nutrimatic drinks dispenser

Registered: 20/07/03
Posts: 5
Loc: coventry, england
ive inputted what u said, but its hard for me to load up the script. i dont have a clue how to? im not a beginner at coding as i have done some in the past, its just im new to scripts for mirc, and also new to mirc codes. how do i load the dlls for the hmtl to run? please help, thanks for the response.

Thanks a lot mate, to run mp3s do i just type /sound mp3?
_________________________
"Of coure i Love Liam, But not as much as i Love Pot Noodles" - Noel Gallagher smile

Top
#37396 - 21/07/03 06:18 PM Re: id say a internet browser window so u can access
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
Okay, easy bit first, yes you can use /sound file.mp3 to play a noise, providing the file is in mIRC's root directory. If the file is elsewhere you need to type the fullpath so mIRC knows where to find the file you want to play - EG: /sound C:\mIRC\Sounds\file.mp3. You can also use the /splay command under the same circumstances which plays the file locally and does not send any CTCP to the channel you're in.

Now to DLL's. DLL's are not really for the inexperienced, and I am not saying you are inexperienced, just highlighting the need for a fair bit of scripting knowledge to nail them. Are you using mIRC V6.X? If not then the latest version of that DLL probably won't work as the DLL file is different and so is the scripting that calls it, because from V6.01 onwards mIRC had a different arrangement for the structure of it's parent and child windows to allow for the coloured window borders that now exist. The author of the DLL, Necroman, passed the job of the development on to a chap called Dan, who did a good job at the necessary modifications. The hardest bit really is making sure none of what I showed you is conflicting with anything else. If in doubt, unzip a new copy of mIRC to another directory and load everything in there. That way nothing can conflict. If it still doesn't work, remove the red bit from the following lines...
Code:
[color:red]var %bs.bs[/color] $dll(nHTMLn.dll,attach,$window(@Browser).hwnd)
[color:red]var %bd.bd[/color] $dll(nHTMLn.dll,navigate,http://iserv.com.au/)
... And then try again. The removal of these allows error msgs to show in the status window which you cna use to diagnose the problem.

See how you go.
_________________________
Induced IRC
irc.induced.net

Top
#37397 - 21/07/03 07:26 PM Re: id say a internet browser window so u can access
trigger Offline
Nutrimatic drinks dispenser

Registered: 20/07/03
Posts: 5
Loc: coventry, england
cheers mate il giv it a go smile
_________________________
"Of coure i Love Liam, But not as much as i Love Pot Noodles" - Noel Gallagher smile

Top