quick read from your code actually just returned me a hard-coded machine.
a upgrade to 4.xx would indeed give you much!
not that only you have already made codes but also you would get the support any other scripting language can give.

sadly we have only resources for 4.xx (2001) of kix but the support we have is the reason why you should really consider upgrading.

if you can't, please say so.
also, if you could, say also why.

cheers.
_________________________
!

download KiXnet