Just a simple away script via menus. Just right click and you'll know what to do.
A couple of the features don\'t really need to be included. Why would you say if you are away when it already says the message when you leave. If you supported a timer, that would make a bit more sense. What I would like to see in this snippet is some more features. Such as a log feature or an input return feature. If you are messaging to an active channel, you should include a highlight feature.
As to the use of all those global variables, that isn\'t needed. Try using var %away = $$?=\"Enter away msg:\" and then using the $awaymsg identifier. Your %atime identifier isn\'t needed at all. You can use mIRC\'s built in identifier, $awaytime.
Could use a bit of work, and maybe a dialog if you are into those.
--Roy