How to grab text from a webpage?

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,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PeterdeBAuthor Commented:
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?

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,


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If you need help with it post here

Many Thanks,

PeterdeBAuthor Commented:
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!!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.