The API Calls u will need:

mouse_event - For Manipulating Mous
keybd_event - For Sending Keys

You can get the documentation of these API functions (with Example) at http://www.vbapi.com/


Good Luck!