Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #talker off
  2.  
  3. on 1:input:*: {
  4. if (!%co1) || (!%co2) { echo -a Please set the colors in the menu, or disable the talker. | halt }
  5. elseif (/ !iswm $left($1,1)) && (Status Window !iswm $active) {
  6. var %x 1
  7. while (%x <= $gettok($1-,0,32)) {
  8. var %text1 $mid($gettok($1-, [ [ %x ] ],32),1,1)
  9. var %text [ [ %text ] ] $replace($mid($gettok($1-, [ [ %x ] ],32),1,1),[ [ %text1 ] ], $+(,[ %co1 ],,[ [ %text1 ] ],,[ %co2 ],)) $+ $mid($gettok($1-, [ [ %x ] ],32),2,$calc($len($gettok($1-, [ [ %x ] ],32) - 1)))
  10. inc %x
  11. }
  12. msg $active %text
  13. halt
  14. }
  15. }
  16.  
  17. #talker end
  18.  
  19. menu * {
  20. Talker
  21. .Colors
  22. ..Color One %co1 : set %co1 $$input(Choose a color: Ex. 12,eo,Color,%co1)
  23. ..Color Two %co2 : set %co2 $$input(Choose a color: Ex. 14,eo,Color,%co2)
  24. . -
  25. . $iif($group(#talker) == on,$style(1) Enabled,Enabled): enable #talker
  26. . $iif($group(#talker) == off,$style(1) Disabled,Disabled): disable #talker
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement