SpellCheck Dialog

By napa182 on Mar 22, 2008

Ok i know there is a ton of spellcheckers so il add my take on it as well.
copy/paste into a new remote. Right Click either in a channel or in ur menubar to open....

Image

dialog spc {
  title "Spell"
  size -1 -1 79 69
  option dbu
  box "Enter 1 Word To Check:", 1, 2 2 76 20
  edit "", 2, 4 10 48 9, autohs left
  button "Check", 3, 54 10 22 9, flat
  box "Outcome", 4, 2 23 76 45
  list 5, 4 32 48 34, size vsbar
  button "Clear", 6, 54 32 22 9, flat
  button "Copy", 7, 54 44 22 9, flat
  button "Exit", 8, 54 56 22 9, flat ok
}
menu menubar,channel {
  .Spell Checker:dialog $iif($dialog(spc),-v,-md spc) spc
}
on *:load: { 
  echo 12 -a You Have Just Loaded Napa182's SpellChecker Dialog
  echo 12 -a An Irc.EzzyChat.com Production
}
on *:dialog:spc:init:0:{ did -b spc 3,6-7 }
on *:dialog:spc:edit:2:{ 
  did -e spc 3,6-7 
  if ($chr(32) isin $did(2).text) || ($did(2).text !isalpha) { did -r spc 2 | noop $input(Please Enter Only One Word No Space's And No Numbers,uhod,ERROR!) }
}
on *:dialog:spc:sclick:*: {
  if ($did == 3) {
    did -r spc 5
    if ($sock(spell)) sockclose spell
    sockopen spell www.infoplease.com 80
    sockmark spell $+(/spellcheck?word=,$did(2).text,&x=18&y=10) didtok spc 5 32
  }
  if ($did == 6) { did -r spc 2,5 | did -b spc 3,6-7 }
  if ($did == 7) { clipboard $did(5).seltext }
}
on *:sockopen:spell: {
  sockwrite -nt $sockname GET $gettok($sock(spell).mark,1,32) HTTP/1.1
  sockwrite -nt $sockname Host: $+($sock(spell).addr,$str($crlf,2))
}
on *:sockread:spell: {
  var %spell | sockread %spell
  if ($regex(%spell,/<p>(.+spelled correctly)<\/p>/)) { $gettok($sock(spell).mark,2-,32) $regml(1) | sockclose spell }
  if ($regex(%spell,/<li>(\w.+?)(\50.+<\/li>|<\/li>)$/i)) { set -u4 %spell2 $addtok(%spell2,$regml(1),32) }
  if (*</div><!--/ SynList -->* iswm %spell) { $gettok($sock(spell).mark,2-,32) %spell2 | sockclose spell }
}

Comments

Sign in to comment.
Jonesy44   -  Oct 25, 2009

Hahahahahahahaha

 Respond  
Ghost-writer   -  Oct 25, 2009

i entered porn and it give me is right :| any script that tells me porn is right isnt good, ITS AMAZING! 5/9

 Respond  
RagBot   -  May 28, 2008

It\'s great, sometimes i have no clue how to spell things, but know what\'s close it it. just one thing, when i backspace it, when i get rid of the first letter, it sends an error sayng \"Please Enter Only One Word No Space\'s An No Numbers\". still a 9/10 :p

 Respond  
EL   -  Mar 23, 2008

Ok as you know i tested this before release.I like it no damn alias to type just open it an input text.Its clean and works well altho like i said maybe a bit wider if some on get uber n3rd they may have longer words but thats nothing.Also like it to be in bot form an maybe a counter of ommon words spellchecked would be neat over all its a ace code as always with your scrips.\'\'Rate it or Hate it?\"...9/10.`-.-

 Respond  
Jonesy44   -  Mar 22, 2008

[:: \"napa\" Is Wrong ::]

too true .. xD

 Respond  
napa182   -  Mar 22, 2008

LMFAO

 Respond  
EL   -  Mar 22, 2008

*Sighs...Antoher one...Watcha tryin to say here huh huh huh?
We can\'t shpell?

 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.