473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Screen scraping data from windows app - help needed

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
2 8263
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jonathan Epstein | last post by:
I would like to perform a more classical type of "screen scraping" than what most people now associate with this term. I only want to find all the text on the current screen, and obtain associated...
4
by: Roland Hall | last post by:
Am I correct in assuming screen scraping is just the response text sent to the browser? If so, would that mean that this could not be screen scraped? function moi() { var tag = '<a href='; var...
3
by: _eee_ | last post by:
Does anyone know of a simple code module that can do screen scraping, including simulating user-entered pushbuttons, etc. I can get the first screen on a website with HttpWebRequest, but I need...
3
by: Jim Giblin | last post by:
I need to scrape specific information from another website, specifically the prices of precious metals from several different vendors. While I will credit the vendors as the data source, I do not...
4
by: rachel | last post by:
Hello, I am currently contracted out by a real estate agent. He has a page that he has created himself that has a list of homes.. their images and data in html format. He wants me to take...
2
by: ken | last post by:
i'm trying to figure out the complexity of writing a Windows C++ app that will automatically read a Poker window and then be able to make odds estimates based on that. there are applications out...
4
by: different.engine | last post by:
Folks: I am screen scraping a large volume of data from Yahoo Finance each evening, and parsing with Beautiful Soup. I was wondering if anyone could give me some pointers on how to make it...
3
by: WFDGW2 | last post by:
I want to write or obtain C++ code that will scrape text from a dialog box within a poker client, and then record that text somewhere else. What do I do? Thanks.
3
by: bruce | last post by:
Hi... got a short test app that i'm playing with. the goal is to get data off the page in question. basically, i should be able to get a list of "tr" nodes, and then to iterate/parse them....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.