Non-web scraping?

G

Guest

I need to scrape text off of a form. I can find tons of info on web page
scraping, but barely anything about scraping off of winforms. Is there a
tutorial out there about scraping forms via the windows API?
 
G

Gabriel Magaña

Hopefully you get an answer from someone that knows this better, but in
essence you have to fund the handle of the main window, then get the list of
child controls, then look at each one, make sure it has the info you want,
and get the info. The devil is in the details of course, specially since
this is all C-based code, you probably would be better off writing a C/C++
routine in a dll to do this and then calling your routine from C#, rather
than making all those calls with C#, you will spend a lot of time worrying
whether or not you are calling the API correctly in addition to what you are
trying to accomplish.
 
G

Guest

Thanks for the reply. I know I'll be p/invoking my ass off; I'm hoping to
get some details on the functions I'll need to call...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top