This is an insanely simple script that searches some of the tv.yahoo.com sites.Thanks to aaslyfox for fixing the remotes problem.if you are using the aliases version, for Australia type "/TVAU word", for America "/TVUS word", for the UK "/TVUK word" and for France "/TVFR word", all without the quotes.If you are using the remotes version,type !tvau for Australia, !tvus for America, !tvuk for the UK and !tvfr for France.Also,this is my first bit of scripting experience ever,so please be nice.
For those without a bot,put his in aliases:
/TVAU {
/run http://au.tv.yahoo.com/searchresults.html?kw= $1-
}
/TVUS {
/run http://tv.yahoo.com/lineup?cf=&search=true&title= $1-
}
/TVUK {
/run http://uk.tv.yahoo.com/search/tv?p= $1- &type=n&lineup=uk&.intl=uk&range=7&n=10
}
/TVFR {
/run http://fr.tv.yahoo.com/search/tv?n=10&type=n&lineup=fr&.intl=fr&range=1&p= $1-
}
For those with a bot,put this in remotes:
on *:text:*:#: {
if ($1 == !tvau ) {
run http://au.tv.yahoo.com/searchresults.html?kw= $1-
}
if ($1 == !tvus ) {
/run http://tv.yahoo.com/lineup?cf=&search=true&title= $1-
}
if ($1 == !tvuk ) {
run http://uk.tv.yahoo.com/search/tv?p= $1- &type=n&lineup=uk&.intl=uk&range=7&n=10
}
if ($1 == !tvfr ) {
run http://fr.tv.yahoo.com/search/tv?n=10&type=n&lineup=fr&.intl=fr&range=1&p= $1-
}
}
hmmm...we have a conundrum.without the $1- it doesn\'t search for anything.but with the $1- it searches for \"!tvxx yoursearch\".this doesn\'t seem to be a problem,since i have been using it and it seems to work fine even with the !tvxx bit at the start.i just did \"!tvau Fastlane\" \'cos that\'s what\'s on,and the results are at http://au.tv.yahoo.com/searchresults.html?kw=%20!tvau%20fastlane . so it seems to work fine.
if ($1 == !tvus ) {
/un http://tv.yahoo.com/lineup?cf=&search=true&title= $1-
}
change to
if ($1 == !tvus ) {
/run http://tv.yahoo.com/lineup?cf=&search=true&title= $1-
}
you had it as /un .. /un is not a command according to my mIRC
this should work in the remotes section
on :text::#: {
if ($1 == !tvau ) {
run http://au.tv.yahoo.com/searchresults.html?kw= $1-
}
if ($1 == !tvus ) {
/un http://tv.yahoo.com/lineup?cf=&search=true&title= $1-
}
if ($1 == !tvuk ) {
run http://uk.tv.yahoo.com/search/tv?p= $1- &type=n&lineup=uk&.intl=uk&range=7&n=10
}
if ($1 == !tvfr ) {
run http://fr.tv.yahoo.com/search/tv?n=10&type=n&lineup=fr&.intl=fr&range=1&p= $1-
}
}