>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.
Thank you David !
The problem is that I try to control a Java Applet that doesn't 'present' it's events. That's what the mouse (cursor really) movement and click events are needed for.
Does anybody know how to move the mouse and trigger the click event within IE5 ?
Birger G. Thoresen
Pek og Klikk