procedure SetData;
var
  doc: IHTMLdocument2;
  elem: IHTMLElement;
begin
    doc := IE.document as IHTMLdocument2;
    elem := doc.all.item('mycontrol',0) as IHTMLElement;
    elem.value := 'SomeValue';
end;

In the HTML document:

<form>
  <input type="text" id="mycontrol">


HTH
Dennis.


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 2:44 PM
Subject: [DUG]: Automating Internet Explorer from Delphi


> I want to use IE as an OLE Automation server. I've found the events,
methods
> and properties for the IE Object on MSDN. However, I'm having trouble
> finding what I need. I want to go to a particular URL (no problems) and
then
> enter a user name and password, which that page prompts for. Can I get
this
> level of interaction, where I can effectively fill in forms and click
> buttons in IE, on behalf of the user? If so, which events / methods /
> properties should I use and how?
>
> Anyone done this? Any sites recommended?
>
> Cheers
>
> Dave Jollie
> Software Developer BOA IT
> 09 368 4259 ext 6231
>
> The information contained in this mail message is confidential and may
also
> be legally privileged. If you are not the intended recipient, please note
> that any use, dissemination, further distribution, or reproduction of this
> message in any form what so ever, is strictly prohibited.  If the mail is
in
> error, please notify me by return E-mail, delete your copy of the message,
> and accept my apologies for any inconvenience caused.
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to