Countcode alias

By kerstt on Jun 04, 2007

count how many bytes something is just copy ur script in the editbox and push enter
just a lil simple snippet

alias countcode {
  window -k0dE +fxtyn @countcode
}
on *:input:@countcode:{
  echo @countcode $1-
  write countcode.txt $1-
  window -dok0e +ftxyn @bytes -1 -1 200 100
  clear @bytes
  echo @bytes $bytes($file(countcode.txt).size,b) bytes
}
on *:close:@countcode: .remove countcode.txt
on *:input:@bytes:{
  if ($1 == clear) { .remove countcode.txt
    window -c @bytes
    clear @countcode
  }
  if ($1 == end)  {
    window -c @bytes
    window -c @countcode @countcode
    .remove countcode.txt
  }
}

Comments

Sign in to comment.
kerstt   -  Jun 04, 2007

updated

 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.