By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

Screen scraping data from windows app - help needed

P: n/a
Me
I am dealing with a poorly written windows application that does not contain
an API.

I would like to use C# to run a predetermied set of steps in the application
and scrape the resulting data from the screen and write it to a SQL
database. That said, I have no idea how to go about doing so in C#.

Any ideas, samples or links would be greatly appreciated. Thank you.
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Me,

In order to scrape the screen, you are going to have to resort to using
API calls in C#, so I would look into the P/Invoke layer. Also, I would
learn to use Spy++, a tool that comes with Visual Studio. It allows you to
find the windows in an application and get information about the messages
sent to them, the styles, etc, etc. This kind of information can be
invaluable for a screen-scraping application. Finally, I would look into
ADO.NET, which is what you will use to place the information into a SQL
database.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Me" <Me@me.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I am dealing with a poorly written windows application that does not contain an API.

I would like to use C# to run a predetermied set of steps in the application and scrape the resulting data from the screen and write it to a SQL
database. That said, I have no idea how to go about doing so in C#.

Any ideas, samples or links would be greatly appreciated. Thank you.

Nov 13 '05 #2

P: n/a
Me
Thanks! :-)
"Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote
in message news:ud**************@tk2msftngp13.phx.gbl...
Me,

In order to scrape the screen, you are going to have to resort to using API calls in C#, so I would look into the P/Invoke layer. Also, I would
learn to use Spy++, a tool that comes with Visual Studio. It allows you to find the windows in an application and get information about the messages
sent to them, the styles, etc, etc. This kind of information can be
invaluable for a screen-scraping application. Finally, I would look into
ADO.NET, which is what you will use to place the information into a SQL
database.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Me" <Me@me.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I am dealing with a poorly written windows application that does not

contain
an API.

I would like to use C# to run a predetermied set of steps in the

application
and scrape the resulting data from the screen and write it to a SQL
database. That said, I have no idea how to go about doing so in C#.

Any ideas, samples or links would be greatly appreciated. Thank you.


Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.