?
Solved

IE and delphi

Posted on 2009-04-01
2
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 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