Solved

IE and delphi

Posted on 2009-04-01
2
206 Views
Last Modified: 2013-11-23
Hi Experts,

How can I in delphi write in a textarea  in an IE window and pressing a link

Exist some way to do this, I can not use the delphi TWebBrowser, I have to do it directly in IE window

Thx for some help
0
Comment
Question by:alpires
  • 2
2 Comments
 
LVL 22

Expert Comment

by:8080_Diver
ID: 24045768
I'll have to take a look at an app I developed at work but I can give you the essence of the process.
You have to be able to identify the text area in the HTML before you can write to it and you also have to identify the link before you can "click" on it.
I'll provide more information tomorrow. ;-)
0
 
LVL 22

Accepted Solution

by:
8080_Diver earned 500 total points
ID: 24050581
Okay, I found the code (see below).
In the code snippet labelled {Basic information}, you see what you need to find in the html, how to set the value, and then what you need to find and 'click'.  (This snippet is from an app that access the TxDoT web site to verify VIN information.)
The declaration of the fHTMLElement is as follows:
 fHtmlElement    : IHtmlElement;

    {Basic information}

    TempResult  :=  FindElement('input','name=vin_1');

    if TempResult

    then begin

      fHtmlElement.setAttribute('value',VIN,0);

      if FindElement('input','type=submit')

      then begin

        fHtmlElement.click;

      end; {if}

    end; {if}

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
indy tidtcpclient threading issue 8 63
How to fill array with TArray.Create? 14 79
Performance of SQL statement 37 98
Tembedded WB animatid gifs not animated on some pcs 2 73
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now