well, I think I got this from Eikon, but you just need to get the mouse coords of everything you would need to click and the keys you would need to type, and find a function called "VKEY" which will simulate keystrokes. I use it pretty frequently in a project I am working on now.
Luck
Luck