google linker

News, Snippets & Assistance with IRC scripting

Moderators: Moderator, Global Moderator

Post Reply
Adrasteia
Hero Member
Hero Member
Posts: 534
Joined: Wed Jul 28, 2004 11:13 am

google linker

Post by Adrasteia »

Hi i know this dll isnt entirely as useful as it can be, eg im going to add a feature to list links from more then just page one, and more then just the websearch area of google, ill add the calc function from google, define, search website etc. anyhow for now it's just to get people maybe into the spirit of dll writing for mirc. pic a language, c++, asm, vb etc and write:P anyhow here's what i have for mine so far...

it will retreive the first 10 links for a search term just as if you typed it into a google search. the dll is attached, just use regsvr32 to register
here is an example script to run the dll through mirc, this will accept ~google Search Term, and msg back to the channel, the first 10 results of the search

on *:Text:~google*:*: {
if ($1 != $null) {
gts $nick $replace($2-,$chr(32),$chr(37) $+ 20)
}
}

alias GtS {
comopen RiftsGoogleDLL RiftsGoogleDLL.class1
var %x = $com(RiftsGoogleDLL,getSC,1,*bstr,$replace($2-,$chr(32),$chr(37) $+ 20))
privmsg $1 $com(RiftsGoogleDLL).result
comclose RiftsGoogleDLL
}

that will react everytime anybody says ~google killagraphix
for example


-Rift-
Last edited by Adrasteia on Sun Dec 19, 2004 1:52 am, edited 1 time in total.
Image
Mr_S
Jr. Member
Jr. Member
Posts: 68
Joined: Thu Jun 17, 2004 12:37 am

google linker

Post by Mr_S »

hey Adrasteia, cool addon! i like...

Good work
Endo
Hero Member
Hero Member
Posts: 1158
Joined: Wed May 05, 2004 9:05 am

google linker

Post by Endo »

I told you in chat it was cool, worked perfect; Josh said something about it being considered to make something arther mirc vb dlls or something, so you\'ve obviously acomplished something, wd <img src=\'http://www.killanet.net/forum3/public/s ... >/good.gif\' class=\'bbc_emoticon\' alt=\'(Y)\' />
[align=center]

Image

[color=\"#333333\"]Last Blog:[/color][color=\"Green\"] SUMMER [/color][color=\"black\"](30/11/06)[/color]

[/align]
Post Reply

Return to “IRC Scripting”