mIRC Home    About    Download    Register    News    Help

Print Thread
#183922 23/08/07 07:45 PM
Joined: Aug 2007
Posts: 1
D
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Aug 2007
Posts: 1
hellow, my english is very poor

i need create one windows with access web (page or code web)

help me please !!

Thanks

see you later

Diegote73 #183980 24/08/07 05:46 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Diegote73
hellow, my english is very poor

i need create one windows with access web (page or code web)

help me please !!

Thanks

see you later


Hi there, ill give you a simple snipplet that reads from the main mIRC webpage then show you an example of grabing txt.

Here is the code...

Code:
alias mirc /sockopen mirc www.mirc.com 80

on 1:sockopen:mirc:{
.sockwrite -n mirc GET / HTTP/1.0
.sockwrite -n mirc HOST: www.mirc.com
.sockwrite -n mirc $crlf
}

on 1:sockread:mirc:{
if ($sockerr > 0) return
var %x | sockread %x
if ($sockbr == 0) return
if (%x == $null) %x = -------
echo -a %x
}


Now if I add if (mIRC isin %x) { echo -a %x } instead of echo -a %x from 1:sockread:mirc:{ it will only read the lines that contain only the word mIRC in them.

Like this...

Code:
on 1:sockread:mirc:{
if ($sockerr > 0) return
var %x | sockread %x
if ($sockbr == 0) return
if (%x == $null) %x = -------
if (mIRC isin %x) { echo -a %x }
}


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard