mIRC Home    About    Download    Register    News    Help

Print Thread
nHTMLn.dll Help in that dll please #46728 03/09/03 01:50 AM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Itīs possible save a page to a certain directory with that dll ??
If sow how... becouse i caīnt find the parameter to do that.
Or if canīt do that with that dll, how can i do that using the cookies off the explored like the nHTMLn.dll uses??

Re: nHTMLn.dll Help in that dll please #46729 03/09/03 04:02 AM
Joined: Jun 2003
Posts: 67
D
demitrix Offline
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
yuo can save sites with sockets.


while (demi == nub) {
inc %skill
}
Re: nHTMLn.dll Help in that dll please #46730 03/09/03 08:47 AM
Joined: Dec 2002
Posts: 124
B
bloupx Offline
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
the dll offers no such funtion.

Re: nHTMLn.dll Help in that dll please #46731 03/09/03 11:25 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Quote:
while (demi == nub) {
inc %skill
}

did you mean that?,thats his signature smile


new username: tidy_trax
Re: nHTMLn.dll Help in that dll please #46732 03/09/03 11:32 AM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
And with sokect i can save the page using the cookies off the explorer ???

Re: nHTMLn.dll Help in that dll please #46733 03/09/03 11:39 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Yes, since cookies are kept in files and so can be easily accesed from mIRC.

Re: nHTMLn.dll Help in that dll please #46734 03/09/03 12:58 PM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Can someone give a example how to do that them please ?

Re: nHTMLn.dll Help in that dll please #46735 03/09/03 01:12 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Code:
alias google {
  var %search $replace($1-,$chr(32),+)
  sockopen google google.com 80
  sockmark google %search
}
on *:sockopen:google:{
  sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.1
  sockwrite -n $sockname Accept: */*
  sockwrite -n $sockname $crlf
}
on *:sockread:google:{
  if ($sockerr) { return }
  sockread %s
  tokenize 32 %s
  echo -s $1-
}

/google <your search>


new username: tidy_trax
Re: nHTMLn.dll Help in that dll please #46736 04/09/03 07:40 AM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
But this is with acessing the cookies, the example i was referal is with the explorer cookies.

Re: nHTMLn.dll Help in that dll please #46737 04/09/03 07:48 AM
Joined: Dec 2002
Posts: 124
B
bloupx Offline
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
var %search ... not needed.
and you're assuming that google.com is always up. no checking for $sockerr on sockopen.

on *:sockopen:google:{
if (!$sockerr) {
var %s = sockwrite -n $sockname
%s GET $sock($sockname).mark HTTP/1.1
%s Accept: */*
%s $crlf
}
}
on *:sockread:google:{
var %s
sockread %s
if (!$sockerr) && ($sockbr) {
tokenize 32 %s
echo -s $1-
}
}

plus he might have another google search script already which uses google as sockname so make that variable too.


Re: nHTMLn.dll Help in that dll please #46738 04/09/03 08:29 AM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
but this donīt work with the explorer cookies, for example i want to acess to a site that needs pass and user but if i not log out when i go wih the explore to that site he donīt ask for any pass or user becouse the last time i have not logeed out.
And them in the echo in some lines gives a error
* /echo: insufficient parameters (line 14, script3.mrc).

The file off the cookie whery is the pass and user off that site is here :
D:\Documents and Settings\Miguel_A\Cookies\Miguel@HostIn[2].txt

Last edited by Miguel_A; 04/09/03 08:40 AM.
Re: nHTMLn.dll Help in that dll please #46739 04/09/03 08:35 AM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Or a way to set the user and the password in the remotes section too

Re: nHTMLn.dll Help in that dll please #46740 04/09/03 10:32 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i was giving a quick example of sockets, so maybe he can figure out how to get the cookies himself, no need to correct it, if he'd asked for a better example i would of given it.


new username: tidy_trax
Re: nHTMLn.dll Help in that dll please #46741 04/09/03 05:05 PM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
The HTML code off the site is like this :

<p>
<form action="/html/overview" method=POST>
<input type="hidden" name="secureid" value="42186787">
<input type="hidden" name="securecode" value="WZUE">
<table cellpadding=2 cellspacing=1 class=border>
<tr>
<td class=row3>&nbsp;&nbsp;
773
Username&nbsp;&nbsp;</td>
<td class=row align=right colspan=2>&nbsp;<input name="username" type="text" class="text" size=20 tabindex=1 value="">&nbsp;</td>
</tr>
<tr>
<td class=row3>&nbsp;&nbsp;Password&nbsp;&nbsp;</td>
<td class=row align=right colspan=2>&nbsp;<input name="password" type="password" class="text" size=20 tabindex=2>&nbsp;</td>
</tr>
<!--tr>
<td class=row3>&nbsp;&nbsp;Security&nbsp;&nbsp;</td>
<td class=row><img src="/image/security?secureid="></td>
<td class=row align=right>&nbsp;<input name="securecode" type="text" class="text" size=12 tabindex=2 value="">&nbsp;</td>
</tr-->

How can i set the username and passowrd to singin with the mirc ??

Re: nHTMLn.dll Help in that dll please #46742 04/09/03 05:46 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
colour or bold the bits im supposed to be looking at please.


new username: tidy_trax
Re: nHTMLn.dll Help in that dll please #46743 04/09/03 05:58 PM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
pheonix sorry donīt understud the meaning off the last sentence.
I have put the html code becouse i have find this :

http://forums.mirc.com/showflat.php?Cat=...=true#Post10766

Them iīam suposing that is possibel login with that parameters but when i try it gives me an error.
And i am not undertanding the 2 Methods that Hammer have put ther the Method="GET" and the Method="POST".
Can someone explain to me please ?