have alook at the extensive online modules as well as the built in bundle. there is a script editor built into m8 and you can easily look at the code of other modules and cobble together something you need.
if I had more time I'd like to build the module myself - would be very useful.