All pastes #496451 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-19 07:36 UTC
rendered paste body
    if ( on * iswm %z ) /OnEvents %z $+(,:,$gettok(%z,3,58))
    if ( alias * iswm %z ) /did -a sm 214 $gettok($replace(%z,-l,$chr(32)),2,32)



alias -l OnEvents {
  /var %x = $gettok($1-,2,58)
  if ((%x == text) || (%x == notice)) /did -a sm 212 $+(%x,*:*,$gettok($1-,3,58))
  elseif (%x == dialog) /did -a sm 212 $+(%x,*:*,$gettok($1-,5,58))
  else /did -a sm 212 $+(%x,*:*,$gettok($1-,3,58))
}