Skip to content
GuarDDog v. 5

Using *.mrc Scripts with GD5

A TG007 community discussion started by au_casper.

Discussion 12 posts
Page 1 of 1
Open
Topic #6866 · 12 published posts · 2,630 views

B) Hey all,

 

I recently d/l GD 5.0a and my passport and connection to groups is fine. I want know how to use my *.mrc scripts/snippets like I did in GD4. I use to have a several scripts available for the regualrs to my group, like !google, !imdb, !weather,

 

Now that I have setup GD 5.0a none of these scripts respond anymore. The scripts/snippets load correctly: IMDb Movie Search v1.7, Successfully loaded - Type /_imdb to configure. But there is no response to the triggers.

 

Any help would be greatly appreciated.

 

Cheers B)

¤ÇçþèR¤™¤2006©

Try turning off "Show user colors" and see if they work after that. Right click in main room window, Go to DogCollar Connection [Main], Click on "Setup Dialog". In that dialog, Click on "Room Options" and scroll down in that list until you see the "Show User Colors" box and uncheck it. Click Ok and you are done.

Edited Jun 17, 2006 5:14 PM by Mail

 

"Diplomacy is the art of saying 'Nice doggie' until you can find a rock".-Will Rogers

alias scmd return $strip($1)
on *:TEXT:*:#:{
 if (adminlevel isin $level(*! $+ $ial(* $+ $nick $+ *).addr)) {
     if ($scmd == !google) { command operations here }
 }
}

don't know if that'll work, but it's a basic idea =\

you should be able to use that with show users colors on..

Thanks guys, have tried turning off user colors, and still nothing. GD4 was great for me, it gave me protection and I could run a few *.mrc scripts in the room for fun and entertainment to chatters. I'm just learning GD5 (GD5 looks awesome, I can't believe the skill of TGK) but can't figure out how to use these sames scripts.

 

Does the script/snippets I'm using need to be modified to work with GD5? (Just a thought). The !google script I use is available here. I have tested it with irc servers and channels, this works fine.

 

Hopefully someone can point me in the right directions :lolwave:

 

 

Hello au_casper, i'm not to sure why the code would not work. As instructed, show user colors should be off, to allow for the code to work. This would be/should be the only thing stopping it from working. You sure there is not a switch in the code? As in, a switch to turn the addon on/off.

 

I have not had time to look at any mIRC coding of late due to other commitments with school and that, and this will continue for the next few months (till the end of the year virtually). I will try and look at the code if i get some time, but it wont be any time soon.

 

I'm sorry for any inconvience coursed by GuarDDog v. 5.

:: Progress ::

 

Ok, I have had some progress. Thanks for the advise TGK & everyone. I can confirm 'show user colors' is definately switched off. Yes TGK there are some switches with this script/add on, which I have set as follows:

  • Enable Script
is ticked <LI>Message Mode is channelNetworks / Channel is AllTrigger is !googleI went through every option one by one changing it to "on / off" or "tick / untick" and restarted GD5 after each option. This has had some progress, the search results now output to the room :D . The one thing that still doesn't work is is using the trigger without a search term. Normally this would whisper to the user the help or instructions on how to use the script/add on and any options available like 'limit search results to 5, ie !google -l5 mIRC'

 

 

 

I am almost there for getting this working 100%... so here is the code, I appreciate TGK you are very busy with school and grades, maybe another board poster might see a problem in the code or advise what else I need to check in GD5. Oh, and by the way TGK its no inconvience at all, I'm very grateful that your script connects to MSN once again after they changed the protocol :D

 

 

 


;===============================================
; Google Search v1.8 by Meij <[email protected]>
;===============================================

on *:LOAD: {
 if ($version < 6.03) {
   .unload -rs $+(",$script,")
   echo -ts Google Search v1.8 Requires mIRC v6.03 or newer to be installed successfully, script auto-unloaded.
 }
 else { echo -ts Google Search v1.8, Successfully loaded - Type /_google to configure. }
}
on *:UNLOAD: {
 if ($timer(_google)) { .timer_google off }
 unset %queue._google.*
 hfree -w _google.*
 echo -ts Google Search v1.8, Successfully unloaded.
}
on *:TEXT:*:#: { if ($_ban($+($nick,!,$address))) && ($_trigger($1)) { _input $chan $cid $nick $2- } }
on *:INPUT:#: { if ($_trigger($1)) { _input $chan $cid $nick $2- } }
on *:SOCKOPEN:_google.*: {
 tokenize 32 $sock($sockname).mark
 sockwrite -nt $sockname GET $+(/search?hl=en&q=,$_encode($6-),&num=,$4,&btnG=Search&meta=) HTTP/1.1
 sockwrite -nt $sockname Accept-Language: en-us
 sockwrite -nt $sockname User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
 sockwrite -nt $sockname Referer: http://www.google.com
 sockwrite -nt $sockname Host: www.google.com
 sockwrite -nt $sockname Connection: keep-alive
 sockwrite -t $sockname $str($crlf,2)
}
on *:SOCKREAD:_google.*: {
 if ($sockerr > 0) return
 :nextread
 sockread &x
 if ($sockbr == 0) return
 if ($bvar(&x, 1, 7).text == HTTP/1.) {
   var %r $bvar(&x, 1, $calc($bfind(&x, 1, $cr) - 1)).text
   if ($gettok(%r, 2, 32) != 200) && ($gettok(%r, 2, 32) != 302) {
     _hadd $sockname error %r
     _parse $sockname error $sock($sockname).mark
     sockclose $sockname
     return
   }
 }
 hadd -mbu300 $sockname $_item($sockname) &x
 if ($bfind(&x, 1, </html>)) { var %sn $sockname, %sm $sock(%sn).mark | sockclose $sockname | _main %sn %sm | return }
 goto nextread
}
on *:SOCKCLOSE:_google.*: { _main $sockname $sock($sockname).mark | return }

;
; Main HTML Parsing Alias
;
alias -l _main {
 var %i 1, %sn $1
 bunset &x
 while ($hget(%sn,%i).item) {
   .echo -q $hget(%sn,%i,&x.d)
   bcopy &x $calc($bvar(&x,0) + 1) &x.d 1 $bvar(&x.d,0)
   inc %i
 }
 bunset &x.d
 if ($hget(%sn)) { hfree %sn }
 if ($bvar(&x,0) == 0) {
   _hadd %sn error No data received on socket!
   _parse %sn error $2-
   sockclose %sn
   return
 }
 tokenize 32 $2-
 var %p = $bfind(&x, 1, <font size=-1>Results)
 .echo -q $regex(one, $remove($bvar(&x, %p, 500).text, $cr, $lf), <font size=-1>Results .*? of about <b>(.[^ ]*)</b>.*?\((.*?) second.*?\) </font>)
 if ($5 == 1) {
   _hadd %sn results $_regexp($regml(one, 1))
   _hadd %sn time $_regexp($regml(one, 2))
   _parse %sn info $1-
 }

 var %i 1, %m $_ini(set, max)
 while (%i <= %m) {
   var %p = $calc($bfind(&x, %p, <!--m-->) + 1)
   if ($regex(one, $remove($bvar(&x, %p, 400).text, $cr, $lf), <a .*?href="(.*?)".*?>(.*?)</a>)) {
     var %p = $calc($bfind(&x, %p, <font size=-1>))
     if (!$regex(four, $remove($bvar(&x, %p, 800).text, $cr, $lf), <font size=-1>(.*?)<nobr>)) { continue }
     var %t = $regml(four, 1), %desc n/a, %size n/a, %date
     if (</font> isin %t) {
       if ($mid(%t, 2, 12) == - [ <a href=) { var %p = $bfind(&x, $calc(%p + 1), <font size=-1>) }
       .echo -q $regex(two, $remove($bvar(&x, %p, 800).text, $cr, $lf), (.*?)<font color=#008000>(.*?)</font>)
       .echo -q $regex(three, $regml(two, 2),.*? - (.*?) - (.*?) -)
       var %desc $_regexp($regml(two, 1))
       var %size $iif($regml(three, 1),$ifmatch,n/a)
       var %date $iif($regml(three, 2),$asctime($ctime($ifmatch),yyyy-mm-dd),n/a)
     }
     _hadd %sn num %i
     _hadd %sn url $regml(one, 1)
     _hadd %sn title $_regexp($regml(one, 2))
     _hadd %sn desc %desc
     _hadd %sn size %size
     _hadd %sn date %date
     _parse %sn result $1-
   }
   else {
     if (%i == 1) { _parse %sn none $1- }
     break
   }
   inc %i
 }
}

;
; Main Input Alias
;
alias -l _input {
 if (!$_chan($1)) || (!$_ini(set, online)) { return }
 var %l 1, %i 1, %c 0
 while (%i <= $calc($0 - 3)) {
   var %m = $gettok($4-,%i,32)
   if (($left(%m,2) iswm -l) && ($right(%m,-2) > 0)) { var %l $right(%m,-2) }
   elseif (%m == -i) { var %c 1 }
   else { break }
   inc %i
 }
 var %t = $gettok($4-, $+(%i,-), 32)
 if (!%t) {
   _msg $1 $2 $3 3 $decode(Akdvb2dsZSBTZWFyY2ggdjEuOAIgYnkgTWVpaiA8bWVpamllQGdtYWlsLmNvbT4=,m)
   _msg $1 $2 $3 3 $eval($decode(AlVzYWdlAjogJF9pbmkoc2V0LCB0cmlnZ2VyKSBbb3B0aW9uc10gPHNlYXJjaD4=,m),2)
   _msg $1 $2 $3 3 $decode(Ak9wdGlvbnMCOg==,m)
   _msg $1 $2 $3 3 $decode(AiACIAIgAiACIAJMaW1pdCBSZXN1bHRzOiAtbE4gKHdoZXJlIE4gaXMgdGhlIG51bWJlciBvZiByZXN1bHRzIHRvIGxpc3Qp,m)
   _msg $1 $2 $3 3 $decode(AiACIAIgAiACIAJTZWFyY2ggSW5mbzogLWkgKGRpc3BsYXR5cyBzb21lIG1pc2Mgc2VhcmNoIGluZm8gd2l0aCByZXN1bHRzKQ==,m)
   _msg $1 $2 $3 3 $eval($decode(AkV4YW1wbGU6AiAkX2luaShzZXQsIHRyaWdnZXIpIC1pIC1sMTAgbUlSQw==,m),2)
   return
 }
 if ($_ini(set, max) < %l) { var %l $ifmatch }
; Format:
;  1 = channel the trigger was activated from
;  2 = network scid
;  3 = nickname of the person who activated it
;  4 = how many results to list (1, this is default)
;  5 = display misc search info (0 = off, 1 = on)
;  6 = search string
 sockmark $_open $1 $2 $3 %l %c %t
}

;
; Queue Aliases
;
alias -l _msg {
 set %queue._google. [ $+ [ $calc($_info(0) + 1) ] ] $1-
 if (!$timer(_google)) { .timer_google -m 0 2000 _say }
}
alias -l _info {
 if ($1 isnum) {
   if (%queue._google. [ $+ [ $1 ] ]) && ($1 > 0) { return %queue._google. [ $+ [ $1 ] ] }
   elseif ($1 == 0) { return $var(%queue._google.*) }
 }
}
alias -l _say {
 var %i 1
 if (%queue._google. [ $+ [ %i ] ]) {
   tokenize 32 %queue._google. [ $+ [ %i ] ]
   scid $2
   if ($3 ison $1) && ($me ison $1) && ($5) {
     if ($4 == 1) { msg $1 $5- }
     elseif ($4 == 2) { .msg $3 $5- }
     else { .notice $3 $5- }
   }
   unset %queue._google. [ $+ [ %i ] ] | var %h $calc(%i + 1)
   while (%queue._google. [ $+ [ %h ] ]) { set %queue._google. [ $+ [ $calc(%h - 1) ] ] %queue._google. [ $+ [ %h ] ] | unset %queue._google. [ $+ [ %h ] ] | inc %h }
 }
 else { .timer_google off }
}

;
; Socket Aliases
;
alias -l _open {
 :name
 var %s = $+(_google.,$md5($ticks))
 if ($sock(%s)) { goto name }
 if ($_ini(set, proxy)) {
   if ($_ini(set, host)) && ($_ini(set, port)) { sockopen %s $_ini(set, host) $_ini(set, port) }
   else { echo -ta [Google] Error: please specify a hostname and port number in the proxy settings }
 }
 else { sockopen %s www.google.com 80 }
 return %s
}

;
; Misc Aliases
;
alias -l _ban {
 var %i 1
 while (%i <= $ini($scriptdirgoogle.set, ban, 0)) {
   var %x = $readini($scriptdirgoogle.set, n, ban, $ini($scriptdirgoogle.set, ban, %i))
   if ($1 isnum) && ($1 == %i) { return %x }
   elseif (%x iswm $1) { return 0 }
   inc %i
 }
 return $iif($1 == 0,$calc(%i - 1), 1)
}
alias -l _item {
 var %i 1
 while ($hget($1,%i).item) { inc %i }
 return %i
}
alias -l _regexp {
 var %i 1, %l quot 34|lt 60|lg 62|amp 38|nbsp 32, %m $1
 while ($regex(regexp, %m, /((\d{1,3});)/s)) { var %m = $replace(%m, $regml(regexp, 1), $chr($regml(regexp, 2))) }
 .echo -q $regsub(%m, /<[^>]+>/g,, %m)
 while (%i <= $gettok(%l,0,124)) {
   var %t = $gettok(%l,%i,124)
   .echo -q $regsub(%m, $+(/&,$gettok(%t,1,32),;/g), $chr($gettok(%t,2,32)), %m)
   inc %i
 }
 .echo -q $regsub(%m, /&[^;]+;/g,, %m)
 return $remove(%m, (show more), (WGA), (more), (view trailer))
}
alias -l _mode { return $iif($_ini(set, msgmode), $ifmatch, 1) }
alias -l _encode {
 var %s, %p = $len($1-)
 while (%p) {
   if ($mid($1-,%p,1) isalnum) { %s = $+($ifmatch,%s) }
   else { %s = $+(%,$base($asc($mid($1-,%p,1)),10,16),%s) }
   dec %p
 }
 return %s
}
alias -l _ini {
 if ($isid) { return $readini($scriptdirgoogle.set, n, $1, $$2) }
 elseif ($3) { writeini $+(",$scriptdir,google.set,") $1 $2 $$3- }
 else { remini $+(",$scriptdir,google.set,") $$1 $2 }
}
alias -l _trigger {
 if ($1 == $_ini(set, trigger)) { return 1 }
 return 0
}
alias -l _chan {
 if ($_ini(set, all)) { return 1 }
 var %i 1, %l $_ini(set, networks)
 while (%i <= $gettok(%l, 0, 44)) {
   var %n = $gettok(%l, %i, 44)
   if (%n == $network) {
     var %j 1
     while (%j <= $gettok($_ini(set, $+(.,%n)), 0, 44)) {
       var %c = $gettok($_ini(set, $+(.,%n)), %j, 44)
       if (%c == $1) { return 1 }
       inc %j
     }
   }
   inc %i
 }
}

;
; Output Parsing Aliases
;
alias -l _mini {
 var %i 1, %l
 while (%i <= $ini($scriptdirgoogle.set, $1, 0)) {
   var %m = $ini($scriptdirgoogle.set, $1, %i)
   if ($iif($3,$3-,*) iswm %m) { var %l = $addtok(%l, %m, 44) }
   inc %i
 }
 var %l = $sorttok(%l, 44)
 return $iif($2 == 0, $gettok(%l, 0, 44), $gettok(%l, $2, 44))
}
alias -l _hadd { hadd -mcu300 $1 $$2 $3- }
alias -l _codes {
 var %i 1, %o $$1-, %r = $+(/&b\^/g 2|/&u\^/g 31|/&o\^/g 15|/&k\^/g 3|/&r\^/g 22)
 while (%i <= $gettok(%r, 0, 124)) {
   var %t = $gettok(%r, %i, 124)
   .echo -q $regsub(%o, $gettok(%t, 1, 32), $iif($gettok(%t, 2, 32) isnum, $chr($ifmatch), $ifmatch), %o)
   inc %i
 }
 return %o
}
alias -l _parse {
 var %i 1, %m $+($2,_*), %s $3-
 _hadd $1 chan $gettok(%s, 1, 32)
 _hadd $1 nick $gettok(%s, 3, 32)
 _hadd $1 limit $gettok(%s, 4, 32)
 _hadd $1 search $gettok(%s, 6-, 32)
 while (%i <= $_mini(outp, 0, %m)) {
   var %e = $_mini(outp, %i, %m), %l = $_codes($_ini(outp, %e)), %j 1, %o %l
   while (%j <= $hget($1, 0).item) {
     .echo -q $regsub(%o, $+(/&,$hget($1, %j).item,\^/g), $hget($1, $hget($1, %j).item), %o)
     inc %j
   }
   inc %i
   if ($regex(%l, /&[^&]*?\^/g) != $regex(%o, /&[^&]*?\^/g)) {
     .echo -q $regsub(%o,/&[^&]*?\^/g,n/a, %o)
     _msg $gettok(%s, 1, 32) $gettok(%s, 2, 32) $gettok(%s, 3, 32) $_mode %o
   }
 }
 if ($hget($1)) { hfree $1 }
}

;
; Dialog Stuff
;
alias _google { if (!$dialog(_google)) { dialog -m _google _google } }
alias -l _cmbload {
 var %i 1
 while (%i <= $gettok($_ini($3, $4),0,44)) {
   did -a $1 $2 $gettok($_ini($3, $4),%i,44)
   inc %i
 }
}
alias -l _cmbsave {
 var %i 1, %j
 while ($did($1,$2,%i).text) {
   var %j = $+($iif(%j,$+(%j,$chr(44))),$did($1,$2,%i).text)
   inc %i
 }
 return %j
}
alias -l _replace { return $replace($$1-, $chr(2), &b^, $chr(31), &u^, $chr(15), &o^, $chr(3), &k^, $chr(22), &r^)) }
dialog _google {
 title "Google Search - Settings [/_google]"
 size -1 -1 190 102
 option dbu
 combo 5, 0 9 60 72, sort size
 combo 1, 61 9 61 72, sort size
 button "Done", 2, 74 93 37 9, ok cancel
 edit "", 3, 127 37 60 10
 text "Trigger:", 4, 127 30 20 7
 text "Channels", 6, 80 1 23 7
 text "Networks", 7, 18 1 24 7
 button "Add", 8, 61 81 16 9
 button "Rem", 9, 78 81 16 9
 button "Add", 10, 0 81 16 9
 button "Rem", 11, 17 81 16 9
 check "All", 16, 106 81 17 10
 check "Enable Script", 15, 128 48 46 9
 combo 12, 127 19 60 43, size drop
 box "Options", 13, 124 6 66 85
 text "Message Mode", 14, 127 12 37 7
 button "Ban List", 20, 127 59 60 9
 button "Proxy Settings", 17, 127 69 60 9
 button "Configure Output", 18, 127 79 60 9
}
dialog _google.proxy {
 title "Google Search - Proxy Settings"
 size -1 -1 164 19
 option dbu
 button "Done", 1, 62 10 37 9, ok cancel
 text "Host:", 2, 0 1 14 8, right
 edit "", 3, 15 0 102 10
 text "Port:", 4, 118 1 13 8, right
 edit "", 5, 132 0 31 10
 check "Enabled", 6, 133 10 30 9
}
dialog _google.ban {
 title "Google Search - Ban List"
 size -1 -1 190 102
 option dbu
 combo 1, 1 1 188 92, size
 button "Done", 2, 74 93 37 9, ok cancel
 button "Add", 3, 0 93 16 9, default
 button "Rem", 4, 17 93 16 9
}
dialog _google.output {
 title "Google Search - Configure Output"
 size -1 -1 190 102
 option dbu
 edit "", 1, 0 12 190 80, multi return autohs autovs vsbar
 combo 2, 1 1 60 50, size drop
 text "", 3, 136 3 51 8, hide
 button "Done", 4, 74 93 37 9, ok cancel
}
on *:DIALOG:_google:*:*: {
 if ($devent == init) {
   if ($_ini(set, online)) { did -c $dname 15 }
   did -a $dname 12 Channel
   did -a $dname 12 Private
   did -a $dname 12 Notice
   did -c $dname 12 $iif($_ini(set, msgmode),$ifmatch,1)
   did -ra $dname 3 $_ini(set, trigger)
   _cmbload $dname 5 set networks
   if ($_ini(set, all)) { did -c $dname 16 | did -b $dname 1,5,8,9,10,11 }
   else { did -c $dname 5 1 }
   if ($did($dname,5,1).text) {
     _cmbload $dname 1 set . $+ $did($dname,5,1)
   }
 }
 if ($devent == sclick) {
   if ($did == 19) { run $did($dname,19).text }
   if ($did == 17) { if (!$dialog(_google.proxy)) { dialog -ma _google.proxy _google.proxy } }
   if ($did == 20) { if (!$dialog(_google.ban)) { dialog -ma _google.ban _google.ban } }
   if ($did == 18) { if (!$dialog(_google.output)) { dialog -ma _google.output _google.output } }
   if ($did == 12) { _ini set msgmode $did($dname,12).sel }
   if ($did == 15) { _ini set online $did($dname,15).state }
   if ($did == 16) {
     _ini set all $did($dname,16).state
     if ($did($dname,16).state == 1) {
       did -u $dname 5
       did -b $dname 1,5,8,9,10,11
     }
     else {
       did -e $dname 1,5,8,9,10,11
       if ($did($dname,5,1).text) {
         did -c $dname 5 1
         did -r $dname 1
         _cmbload $dname 1 set . $+ $did($dname,5,1)
       }
       did -f $dname 5
     }
   }
   if ($did == 5) && ($did($dname,5).sel isnum) {
     did -r $dname 1
     _cmbload $dname 1 set . $+ $did($dname,5,$did($dname,5).sel)
   }
   if ($did == 10) && (!$did($dname,5).sel) && ($did($dname,5).text) {
     did -a $dname 5 $did($dname,5).text
     did -c $dname 5 $did($dname,5).lines
     _ini set networks $_cmbsave($dname,5)
     did -r $dname 1
     _cmbload $dname 1 set . $+ $did($dname,5).text
     did -f $dname 5
   }
   if ($did == 11) && ($did($dname,5).sel isnum) {
     var %s $did($dname,5).sel
     did -d $dname 5 %s
     _ini set networks $_cmbsave($dname,5)
     did -r $dname 1
     while (%s > 0) {
       if ($did($dname,5,%s).text) {
         did -c $dname 5 %s
         _cmbload $dname 1 set . $+ $did($dname,5,%s)
         break
       }
       dec %s
     }
     did -f $dname 5
   }
   if ($did == 8) && (!$did($dname,1).sel) && ($did($dname,1).text) && ($did($dname,5).seltext) {
     var %t $did($dname,1).text
     did -a $dname 1 $iif($left(%t,1) != $chr(35),$+($chr(35),%t),%t)
     did -c $dname 1 $did($dname,1).lines
     _ini set $+(.,$did($dname,5).seltext) $_cmbsave($dname,1)
     did -f $dname 1
   }
   if ($did == 9) && ($did($dname,1).sel isnum) {
     var %s $did($dname,1).sel
     did -d $dname 1 %s
     _ini set $+(.,$did($dname,5).seltext) $_cmbsave($dname,1)
     while (%s > 0) {
       if ($did($dname,1,%s).text) {
         did -c $dname 1 %s
         break
       }
       dec %s
     }
     did -f $dname 1
   }
 }
 if ($devent == close) {
   if ($did($dname,3).text) { _ini set trigger $iif($gettok($did($dname,3).text, 1, 32),$ifmatch,!google) }
 }
}
on *:DIALOG:_google.proxy:*:*: {
 if ($devent == init) {
   did -a $dname 3 $_ini(set, host)
   did -a $dname 5 $_ini(set, port)
   if (!$_ini(set, proxy)) || (!$_ini(set, host)) || (!$_ini(set, port)) { did -b $dname 3,5 }
   else { did -c $dname 6 }
 }
 elseif ($devent == sclick) {
   if ($did == 6) {
     _ini set proxy $did($dname,6).state
     if ($did($dname,6).state == 1) { did -e $dname 3,5 }
     else { did -b $dname 3,5 }
   }
 }
 elseif ($devent == close) {
   _ini set host $did($dname,3).text
   _ini set port $did($dname,5).text
 }
}
on *:DIALOG:_google.ban:*:*: {
 if ($devent == init) {
   var %i 1
   while (%i <= $_ban(0)) {
     did -a $dname 1 $_ban(%i)
     inc %i
   }
 }
 elseif ($devent == sclick) {
   if ($did == 3) && ($did($dname, 1).text) {
     did -a $dname 1 $did($dname, 1).text
     did -c $dname 1 $did($dname,1).lines
     did -f $dname 1
   }
   if ($did == 4) && ($did($dname, 1).sel) {
     var %s $did($dname, 1).sel
     did -d $dname 1 %s
     while (%s > 0) {
       if ($did($dname,1,%s).text) {
         did -c $dname 1 %s
         break
       }
       dec %s
     }
     did -f $dname 1
   }
   else { did -f $dname 1 }
 }
 elseif ($devent == close) {
   _ini ban
   var %i 1
   while (%i <= $did($dname, 1).lines) {
     _ini ban %i $did($dname, 1, %i)
     inc %i
   }
 }
}
on *:DIALOG:_google.output:*:*: {
 if ($devent == init) {
   did -r $dname 1,2,3
   did -a $dname 2 Result
   did -a $dname 2 Info
   did -a $dname 2 None
   did -a $dname 2 Error
   did -c $dname 2 1
   var %i 1, %n $_mini(outp, 0, result_*)
   while (%i <= %n) {
     var %s = $_mini(outp, %i, result_*)
     var %o = $+(%o,$_ini(outp, %s),$iif(%i != %n,$crlf))
     inc %i
   }
   did -a $dname 1 %o
   did -j $dname 1
   did -c $dname 1 1
   did -a $dname 3 $did($dname, 2).text
 }
 if (($devent == sclick) && ($did == 2) && ($did($dname, 1).edited)) || (($devent == close) && ($did($dname, 1).edited)) {
   var %m = $+($lower($did($dname, 3).text),_*)
   var %i 1
   while (%i <= $_mini(outp, 0, %m)) {
     _ini outp $_mini(outp, %i, %m)
     inc %i
   }
   var %i 1
   while (%i <= $did($dname, 1).lines) {
     var %m = $+($lower($did($dname, 3).text),_,%i)
     var %t = $did($dname, 1, %i).text
     if (%t) {
       _ini outp %m $_replace(%t)
       inc %i
     }
     else { did -d $dname 1 %i }
   }
 }
 if ($devent == sclick) {
   if ($did == 2) {
     did -ra $dname 3 $did($dname, 2).text
     did -r $dname 1
     var %i 1, %n $_mini(outp, 0, $+($did($dname,2).seltext,_*))
     while (%i <= %n) {
       var %s = $_mini(outp, %i, $+($did($dname,2).seltext,_*))
       var %o = $+(%o,$_ini(outp, %s),$iif(%i != %n,$crlf))
       inc %i
     }
     did -a $dname 1 %o
     did -j $dname 1
     did -c $dname 1 1
   }
 }
}

 

 

 

 

Update

 

I just noticed that when a chatter uses the trigger without search term to get instructions for script/add on, in GD5 status window is shows

 

* Identifier locked in options dialog: $decode (line 124, google.mrc)

 

Not sure if that helps anyone, I'm a n00b to coding and not sure what that means. In my mIRC remotes line 124 is:

 


_msg $1 $2 $3 3 $decode(Akdvb2dsZSBTZWFyY2ggdjEuOAIgYnkgTWVpaiA8bWVpamllQGdtYWlsLmNvbT4=,m)

 

 

ok, to solve this, goto mIRC, in the menu select "view", then select "options".

A dialog appears, on the left (navigation) scroll right to the bottom, and select "other", expand it, then select "Lock". To the right of the dialog, you will see a list, untick all those, and then select "OK".

This should solve the problem.

on *:TEXT:*!google*:#:{ ss /msg # S eTahoma;0 Google.com Search http://www.google.com/search?sourceid=navclient&q= $+ $2 $+ + $+ $3 $+ + $+ $4 $+ + $+ $5 $+ + $+ $6 $+ + $+ $7 $+ + $+ $8 $+ + $+ $9 $+ + $+ $10  }

Works with show user colors on.

on *:TEXT:*:#:{
 set %g.cmd strip($1)
 if (%g.cmd == !google) {
   /msg # S eTahoma;0 Google.com Search http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q= $+ $replace($$2-,$chr(32),+))
 }
}

ok, to solve this, goto mIRC, in the menu select "view", then select "options".

A dialog appears, on the left (navigation) scroll right to the bottom, and select "other", expand it, then select "Lock". To the right of the dialog, you will see a list, untick all those, and then select "OK".

This should solve the problem.

 

 

 

Hey TGK,

 

 

 

I just got home from work and this was the first thing I tried... You were right, it fixed the problem! Using the trigger alone whispers the instructions and help! :yes::cheezy: .... Thanks heaps for your help and thanks to everyone else who put forward their ideas and thoughts. This place rocks!

 

 

 

:jump:

 

 

 

 

no worries, glade i could help.