Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling mouse movement and clicks in IE5 via VFPCOM
Message
From
10/03/2000 13:48:50
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00344315
Message ID:
00344334
Views:
22
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.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform