Birger,
>I need to control mouse movement (move the mouse and click) in IE5.
>I thought this might be done with VFPCOM.
>I'm lost, anybody to point me in the right direction ?
VFPCOM helps you *respond* to IE events, not fire them.
You can click a button by just calling its click method. Try these in the command window and check the results in the browser window that is opened:
oIE=CREATEOBJECT("InternetExplorer.Application")
oie.visible=.t.
oIE.navigate2("msdn.microsoft.com/vfoxpro")
oSearchForm=oIE.document.forms("SrchInput")
oSearchForm.qu.value="Visual Basic"
oSearchForm.submit1.click()
If you view the source of the Visual Foxpro page, you will see the "SrchInput", "qu", and "submit1" names.
I'll leave the mouse-moving for someone else to answer.