mIRC Home    About    Download    Register    News    Help

Print Thread
id say a internet browser window so u can access #37388 20/07/03 06:22 PM
Joined: Jul 2003
Posts: 5
T
trigger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2003
Posts: 5
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
Re: id say a internet browser window so u can access #37389 20/07/03 06:25 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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
Re: id say a internet browser window so u can access #37390 20/07/03 06:33 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
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
Re: id say a internet browser window so u can access #37391 20/07/03 08:28 PM
Joined: Jul 2003
Posts: 5
T
trigger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2003
Posts: 5
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
Re: id say a internet browser window so u can access #37392 20/07/03 08:45 PM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
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
Re: id say a internet browser window so u can access #37393 21/07/03 03:19 AM
Joined: Jul 2003
Posts: 5
T
trigger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2003
Posts: 5
cheers mate smile


"Of coure i Love Liam, But not as much as i Love Pot Noodles" - Noel Gallagher smile
Re: id say a internet browser window so u can access #37394 21/07/03 04:29 AM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
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
Re: id say a internet browser window so u can access #37395 21/07/03 04:57 PM
Joined: Jul 2003
Posts: 5
T
trigger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2003
Posts: 5
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
Re: id say a internet browser window so u can access #37396 21/07/03 05:18 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
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
Re: id say a internet browser window so u can access #37397 21/07/03 06:26 PM
Joined: Jul 2003
Posts: 5
T
trigger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2003
Posts: 5
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