Mr. Obvious Google Search Script

By FordLawnmower on Nov 06, 2009

I stumbled on the Smart As* link the other day, so I decided to script it for cases when people are Obviously just to lazy to use their own Google.
Syntax is !Obvious search words here.
The trigger is on by default. You can turn it off from the Status or Channel window.
Halfops or higher to use the trigger.

To see what it does click HERE

;Mr Obvious Google Search Script by Ford_Lawnmower -- #USA-Chat
menu Channel,Status {
  .$iif($group(#Obvious) == On,$style(1)) Mr. Obvious Trigger
  ..$iif($group(#Obvious) == On,$style(2)) On: .enable #Obvious
  ..$iif($group(#Obvious) == Off,$style(2)) Off: .disable #Obvious
#Obvious on
On *:Text:!Obvious *:#: {
  if ($regex($nick($chan,$nick).pnick,/(!|~|&|@|%)/)) {
    if (!$timer($+(Obvious,$network,$nick))) {
      .timer $+ $+(Obvious,$network,$nick) 1 4 noop
      .msg $chan You will find the answer here: $+(,,$replace($2-,$chr(32),+))
#Obvious end


Sign in to comment.
Get_A_Fix   -  Mar 08, 2015

I did a TCL version of this script, which is run on an eggdrop. This is NOT a mIRC Script.
For those that may want to use it, you can find it Here

FordLawnmower   -  Apr 10, 2010

Your welcome MashhitDK ")

MashhitDK   -  Apr 09, 2010

Just wanna say thanks :D



FordLawnmower   -  Nov 09, 2009

Sure RicJames, I'll try and edit it a little later today.

RicJames   -  Nov 09, 2009

Great script as usual :) One thing though is there any way to cloak the link with tinyurl like the site allows?

sunslayer   -  Nov 08, 2009

@3nigmat1c the easiest way to do it is to hit alt+r, file>new, paste the code, click ok
that will automatically load the file so you dont need to /load -rs it

blitzz   -  Nov 08, 2009

"Mr. Obvious" is getting popular :}

TriNetLabs   -  Nov 08, 2009

Save the script in a .mrc file in your mIRC directory. To get your directory, type //run $mircdir in your mIRC window. After you save it in there, on your mIRC, type //load -rs script.mrc.

3nigmat1c   -  Nov 08, 2009

I have chatzilla as my accoung (lamb-chop) and then an mIRC account with my bot (lambchopisawesome) Now I think the thing is: I don't know how to load them, what I do is make a .txt file that's .mcr.txt then save it with the script. Then go on lambchopisawesome and say /load -rs (script).mcr.txt. Is this the wrong way of doing it?

lg84   -  Nov 07, 2009

thats cause these are ment for other clients i.e bots mirc can't trigger your own on text

3nigmat1c   -  Nov 07, 2009

I swear there is something wrong with my mIRC, none of these scripts work for me.

FordLawnmower   -  Nov 06, 2009

Thanks GrimReaper & Ghost-writer :)

Thanks WorldDMT :) Good to see you back.

I like the timer method that I use, although I would consider changing it if there were a convincing resource usage argument. I don't know that there is much difference in memory usage for a timer v/s a timed variable.
Mine does execute the noop command but a timed variable has to unset itself, so I think that is a wash.
I also don't think there is a difference between "if (!%var)" and "if ($timer(timername))".
I could be wrong though. I don't really know quite as much as I should about the inner workings of mIRC's Scripting engine.

After looking at this the last few minutes, I did realize that there was no reason for the { return } crap. So I changed it to if (!$timer(timername)) { }

WorldDMT   -  Nov 06, 2009

good job ford :)

but i think u can replace the timer by set -u4 like that

if !%var {
  .msg # You will find the answer here: $+(.....)
  set -u4 %var 1
GrimReaper   -  Nov 06, 2009

Good work as usual FordLawnmower.

I'll most cartainly use this.

9/10 :D

Ghost-writer   -  Nov 06, 2009

lol :| nice.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.