Don't know enough about win32 programming to say if this is interesting,
but it claims to do things vbscript cannot, so ruby bindings to the dll
might be useful.

http://www.autoitscript.com/autoit3/index.php

martin