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* }