http://www.tvgam.org.uk/articles/auto.html
Something I wrote last year along similar lines.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?