$gettok and all the tok's are extremely useful.
in my above example using $time
$time returns something like 11:15:36
but i only need the 11 in my example
using gettok i can get just the 11
$gettok($time,1,44)
44 is simply the chr number for : ie $chr(44)
so the gettok is looking for 1 ( the first instance of something before the first :
if i did $gettok(this is a test heh,4,32) it would be test as test is the 4th token in the string using 32 (space) as the separator
You can also get a string
$gettok(this is a test heh,2-4,32) would return is a test
and
$gettok(this is a test heh,2-,32) would return is a test heh
all the tok's are very useful and are pretty well explained in the mirc help file
Edited Aug 10, 2009 8:22 PM by err0r