iPeer

Untitled

Oct 21st, 2013
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.24 KB | None | 0 0
  1. alias texttohex { text2hex $$1- }
  2. alias text2hex {
  3.   var %c = 1, %text = $1, %out
  4.   while (%c <= $len(%text)) {
  5.     %out = %out $+ $iif(%c > 1, $chr(32),) $+ 0x $+ $base($asc($mid(%text, %c, 1)), 10, 16)
  6.     inc %c
  7.   }
  8.   echo -tg %out
  9. }
Advertisement
Add Comment
Please, Sign In to add comment