You could have a look at the SendKeys function.
If you want to do it with API calls then I would recommend you download and install API-Guide its free. Keith
http://www.martin2k.co.uk/forums/index.php?act=idx