Search Master, version 2-- dialog based

By samcobra on May 19, 2005

Basically, this snippet lets you utilize the best of the internet search engines, all under one hood. Its extremely easy to use, and its practically impossible to mess up. Just put it in your remotes and then right-click for the popup to open up the dialog, which is just simple as can be.

This script saves the time needed to go to a website and type in the search. It lets you do all that just through mIRC. Unfortunately, since I do not know sockets, it uses the /run command. If someone could help me socketize it, i'd greatly appreciate it. otherwise, enjoy

menu channel,status,query {
  Search Master Ultimate Search Engine: {
    dialog -m SearchMaster SearchMaster
  }
}

dialog SearchMaster {
  title "Samcobra's Super Search Engine Master"
  size -1 -1 170 160
  option dbu
  tab "Google",1,-1 -2 169 143
  button "Google Web Search",2,50 40 80 25, tab 1
  button "Google Images Search",3,50 70 80 25, tab 1
  tab "Yahoo",4
  button "Yahoo Web Search",5,50 20 80 25, tab 4
  button "Yahoo Images Search",6,50 50 80 25, tab 4
  button "Yahoo Video Search",7,50 80 80 25, tab 4
  tab "MSN",8
  button "MSN Web Search",9,50 20 80 25, tab 8
  button "MSN Images Search",10,50 50 80 25, tab 8
  button "MSN Encarta Search",11,50 80 80 25, tab 8
  tab "Ask Jeeves",12
  button "Ask Web",13,50 40 80 25, tab 12
  button "Ask Images",14,50 70 80 25, tab 12
  tab "Alta Vista",15
  button "Alta Vista Web",16, 50 20 80 25, tab 15
  button "Alta Vista Images",17, 50 50 80 25, tab 15
  button "Alta Vista Audio",18, 50 80 80 25, tab 15
  button "Alta Vista Video",19, 50 110 80 25, tab 15
}

on *:dialog:SearchMaster:sclick:2: {
  var %q="Search For?"
  run http://www.google.com/search?hl=en&q= $+ $replace(%q,$chr(32),$chr(43))
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:3: {
  var %q $$?="Search Line"
  run http://www.google.com/images?q= $+ $replace(%q,$chr(32),$chr(43))
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:5: {
  var %q $$?="Search Line"
  run http://search.yahoo.com/search?p= $+ $replace(%q,$chr(32),$chr(43)) $+ &fr=FP-tab-web-t&toggle=1&ei=UTF-8
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:6: {
  var %q $$?="Search Line"
  run http://images.search.yahoo.com/search/images?p= $+ $replace(%q,$chr(32),$chr(43)) $+ &fr=FP-tab-web-t&toggle=1&ei=UTF-8
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:7: {
  var %q $$?="Search Line"
  run http://video.search.yahoo.com/search/video?p= $+ $replace(%q,$chr(32),$chr(43)) $+ &fr=FP-tab-web-t&toggle=1&ei=UTF-8
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:9:{
  var %q $$?="Search Line"
  run http://search.msn.com/results.aspx?FORM=MSNH&q= $+ $replace(%q,$chr(32),$chr(43))
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:10: {
  var %q $$?="Search Line"
  run http://search.msn.com/images/results.aspx?FORM=IRRE&q= $+ $replace(%q,$chr(32),$chr(43))
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:11: {
  var %q $$?="Search Line"
  run http://search.msn.com/encarta/results.aspx?FORM=ENIR&q= $+ $replace(%q,$chr(32),$chr(43))
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:13: {
  var %q $$?="Search Line"
  run http://web.ask.com/web?q= $+ $replace(%q,$chr(32),$chr(43)) $+ &qsrc=0&o=0
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:14: {
  var %q $$?="Search Line"
  run http://pictures.ask.com/pictures?q= $+ $replace(%q,$chr(32),$chr(43)) $+ &qsrc=0&o=0
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:16: {
  var %q $$?="Search Line"
  run http://www.altavista.com/web/results?itag=ody&q= $+ $replace(%q,$chr(32),$chr(43)) $+ &kgs=1&kls=0
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:17: {
  var %q $$?="Search Line"
  run http://www.altavista.com/image/results?itag=ody&q= $+ $replace(%q,$chr(32),$chr(43)) $+ &kgs=1&kls=0
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:18: {
  var %q $$?="Search Line"
  run http://www.altavista.com/audio/results?q= $+ $replace(%q,$chr(32),$chr(43)) $+ &kgs=1&kls=0
  dialog -x SearchMaster SearchMaster
}

on *:dialog:SearchMaster:sclick:19: {
  var %q $$?="Search Line"
  run http://www.altavista.com/video/results?q= $+ $replace(%q,$chr(32),$chr(43)) $+ &kgs=1&kls=0
  dialog -x SearchMaster SearchMaster
}

Comments

Sign in to comment.
t0k3d   -  May 23, 2005

you could use sockread to get the results and have it insert it into a list or something, and on dclick send you to the link

 Respond  
Yoinx   -  May 20, 2005

I\'ll work on one for you, i just run it, and... popup input boxes triggered from a dialog... why?

 Respond  
samcobra   -  May 20, 2005

how would i do that?

 Respond  
Yoinx   -  May 20, 2005

You should also condense them into a drop down list. a text field and a button.

 Respond  
DarthReven   -  May 20, 2005

i\'d like to actually see the results in mIRC but other then that nice job

 Respond  
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.