Solved

IE and delphi

Posted on 2009-04-01
2
202 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

19 Experts available now in Live!

Get 1:1 Help Now