How to grab text from a webpage?

Posted on 2004-11-11
Last Modified: 2010-04-05
Hi Wizzzardzzz!!

I want to grab some text from a webpage either loaded in TWebbrowser or  IE (I'm not aware of the advantages disadvantages). I should be able to select certain portions of text copy them and paste them into another webpage which is loaded in either TWebbrowser or IE.

Working sample equals all the points!

Tnx in advance guys youre more than worth the subscription!!!

Regards from Holland,

Question by:PeterdeB

    Author Comment

    Oh I forgot to mention something > when the text is grabbed off the webpage I'd preferrably drop it into a TMemo or something. ok?

    LVL 5

    Accepted Solution

    I answered a very similar question. It is complete with a working example. Basically you select some text (from a webpage or whereever) and press a hotkey (Insert for example). This text is then copied and pasted into a TMemo or whatever you want. In the example the text is copied back but if you don't want this feature just remove that portion of the code:

    Best Regards,

    LVL 5

    Expert Comment

    If you need help with it post here

    Many Thanks,


    Author Comment

    Hi Hypoviax! Sorry for leaving no comment > I ran into some troubles getting online so I decided to do only what's necessary and therefore just accepted the answer without leaving a note.

    I could use some help from you again, you know your way around with the stuff I'm trying to do at this moment but I'll post another question for it and reward it generously! Currently I'm working on several projects which all have somethiing to do with automatically logging into some website or automatically posting stuff there. But I'll post a question!

    Regards and max respect to this forum and it's expertzz!!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now