mIRC Home    About    Download    Register    News    Help

Print Thread
#231206 08/04/11 09:20 AM
Joined: Apr 2011
Posts: 2
Y
Yanki Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
Y
Joined: Apr 2011
Posts: 2
Hello everyone,

I'm new on this forum and i have a question.
I'm don't know how to write scripts for my mirc there for i hope someone can help me.

I'm looking for a search script that can do the same like the google search script but then for the site http://social.msdn.microsoft.com/Search/en-us?query

Hopefuly someone can help me with this.

Best regards Yanki.

Joined: Apr 2011
Posts: 2
Y
Yanki Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
Y
Joined: Apr 2011
Posts: 2
i've this right now.:

Code:
on *:text:?msdn *:#: {
  if ($1) { msg $chan $+(http://social.msdn.microsoft.com/Search/en-us?query=,$1-) }
}


but when i type !msdn button i get after ?query= !msdn button but thats wrong the !msdn must be gone.
if i use
Code:
alias msdn { if ($1) { msg $chan $+(http://social.msdn.microsoft.com/Search/en-us?query=,$1-) } }

then it works but then i must start with /msdn button and i want that it starts with !msdn button.

btw buttn is the search option for example.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Not sure if you posted this on multiple help forums under different names, or if there's more than one person looking for the same thing. However, that is irrelevant and my response can be found here

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
?query=,$1-)

$1 = first group of characters before a space generally.

!msdn search
$1= !msdn
$2= search

o
Code:
n *:text:?msdn *:#: {
  if ($1) { msg $chan $+(http://social.msdn.microsoft.com/Search/en-us?query=,$2-) }
}


Link Copied to Clipboard