mIRC Home    About    Download    Register    News    Help

Print Thread
#79862 18/04/04 10:12 PM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
Can someone help me with the following code below
Code:
on *:input:#:{ 
  if $1 == !ns { var %ns $iif($2 == $null,$$?="Search Suprnova for what ?",$2-) | /url -n http://dialspace.dial.pipex.com/town/pipexdsl/o/aoxw32/snsl/ ?q= $+ %ns}
}
  


what im trying to do is when I type in the chan !ns a dialog box pops up asking me what I want to search for. when I enter what im searching for, then I click on ok and a new IE window appears with the results, but this doesn't seem to work, somewhere I think the code is incorrect and wondered if someone could correct it fo me so that this can be used..

any help would be appreciated, I have one already that I use for searching google but this one doesnt seem to work the same way..

confused



Gary
#79863 18/04/04 11:05 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Your first problem is that you have an extra space after the '/', it should be "/snsl/?q= $+ %ns" but you have "/snsl/ ?q= $+ %ns"

To actually search for something you'll need to use sockets, see /help sockets.

Alternatively I guess you could use the messier way and use the same method you're using but with the URL that comes up when SuperNova actually searches for something:

"http://search.suprnova.org//search.php?data%5Bsessionid%5D=be8dacd01b675ad07d4eff66df832206&data%5Baction%5D=searchTorrent&data%5BsearchTerm%5D=word-here&data%5BsearchType%5D=and&data%5BsearchDomain%5D=torrents&data%5Btype_id%5D=0&data%5Bcategory_id%5D=0&data%5Borderby%5D=Date&data%5BorderDir%5D=desc"

In the code the %ns would need to fit into that URL where the red "word-here" is. Haven't thoroughly tested this so don't know it that would work...

Regards,


Mentality/Chris

Link Copied to Clipboard