mIRC Homepage
Posted By: Yanki Help needed for a script. - 08/04/11 09:20 AM
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.
Posted By: Yanki Re: Help needed for a script. - 10/04/11 07:22 AM
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.
Posted By: RusselB Re: Help needed for a script. - 10/04/11 10:38 AM
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
Posted By: DJ_Sol Re: Help needed for a script. - 10/04/11 10:40 AM
?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-) }
}
© mIRC Discussion Forums