473,395 Members | 1,999 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,395 software developers and data experts.

Windows screen scrape app using C++?

ken
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 there, like
Texas Calculatem, which do exactly this, and i'm trying to write one myself.

figuring out the poker logic part is fine, but it's the screen scraping
of a remote windows app that i'm trying to get a handle on.

will this problem boil down to getting a bitmap capture of the desktop
area where the poker window resides? are there win32 api calls that will
make this easier? anything that will give me ascii data or will i
ultimately have to parse a bitmap for card images? if so, are there any
bitmap parsing tools to make that easier than writing my own pixel
matching routines?

i'm linux programmer, so new to win32 programming. i appreciate any
suggestions in where to look for tackling this project. also, i'm
planning to use mingw as my compiler package. will that give me the
necessary tools to write this kind of application?

thank you!
ken
Dec 2 '05 #1
2 9816
Hi

I suggest looking on msdn (I believe http://msdn.microsoft.com)

A bitmap structure is actually quite straight forward so I think it would be
something like getting a dump from the desktop window (I am sure there is a
call or window handle for that) then the bitmap (assuming a 32 bit
resolution) just consist of a reserved byte, Red, Green and Blue byte (not
sure if I got the order correct though).

EnumWindows would get you all the top level windows. There is also a
function to get all child windows i.e. with the two you can browse the
windows hierarchy.

http://msdn.microsoft.com/library/de...numwindows.asp
--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"ken" <ke*@nospam.com> wrote in message
news:h25kf.19288$Eq5.5989@pd7tw1no...
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 there, like Texas
Calculatem, which do exactly this, and i'm trying to write one myself.

figuring out the poker logic part is fine, but it's the screen scraping of
a remote windows app that i'm trying to get a handle on.

will this problem boil down to getting a bitmap capture of the desktop
area where the poker window resides? are there win32 api calls that will
make this easier? anything that will give me ascii data or will i
ultimately have to parse a bitmap for card images? if so, are there any
bitmap parsing tools to make that easier than writing my own pixel
matching routines?

i'm linux programmer, so new to win32 programming. i appreciate any
suggestions in where to look for tackling this project. also, i'm
planning to use mingw as my compiler package. will that give me the
necessary tools to write this kind of application?

thank you!
ken

Dec 3 '05 #2
Hi,
Just saw it

GetDesktopWindow() will get you a handle to the desktop.
--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Moonlit" <news moonlit xs4all nl> wrote in message
news:43***********************@news.xs4all.nl...
Hi

I suggest looking on msdn (I believe http://msdn.microsoft.com)

A bitmap structure is actually quite straight forward so I think it would
be something like getting a dump from the desktop window (I am sure there
is a call or window handle for that) then the bitmap (assuming a 32 bit
resolution) just consist of a reserved byte, Red, Green and Blue byte (not
sure if I got the order correct though).

EnumWindows would get you all the top level windows. There is also a
function to get all child windows i.e. with the two you can browse the
windows hierarchy.

http://msdn.microsoft.com/library/de...numwindows.asp
--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"ken" <ke*@nospam.com> wrote in message
news:h25kf.19288$Eq5.5989@pd7tw1no...
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 there, like Texas
Calculatem, which do exactly this, and i'm trying to write one myself.

figuring out the poker logic part is fine, but it's the screen scraping
of a remote windows app that i'm trying to get a handle on.

will this problem boil down to getting a bitmap capture of the desktop
area where the poker window resides? are there win32 api calls that will
make this easier? anything that will give me ascii data or will i
ultimately have to parse a bitmap for card images? if so, are there any
bitmap parsing tools to make that easier than writing my own pixel
matching routines?

i'm linux programmer, so new to win32 programming. i appreciate any
suggestions in where to look for tackling this project. also, i'm
planning to use mingw as my compiler package. will that give me the
necessary tools to write this kind of application?

thank you!
ken


Dec 3 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason Steeves | last post by:
I have one .aspx form that my users fill out and this then takes that information and populates a second .aspx form via session variables. I need to screen scrape the second .aspx form and e-mail...
2
by: Me | last post by:
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...
3
by: Ollie | last post by:
I know you can screen scrape a website using the System.Net.HttpWebResponse & System.Net.HttpWebRequest classes. But how do you screen scrape a secured website (https) that takes a username &...
2
by: Rob Lauer | last post by:
I have written two completely separate web applications that cannot talk directly to one another (applications "A" and "B"). Application "A" has a form that takes some input (radio buttons,...
2
by: John Stockton | last post by:
Ok, I have a funky situation here. The client has an existing windows application that they want exposed via their c# asp.Net application. The windows app is not .Net based and we do not have the...
7
by: Swanand Mokashi | last post by:
Hi all -- I would like to create an application(call it Application "A") that I would like to mimic exactly as a form on a foreign system (Application "F"). Application "F" is on the web (so...
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.
1
by: nbomike | last post by:
Hello. I want to scrape pages from a site that generates pages from form inputs using this web app . However, the URL of the results page (the page I want to scrape) is masked and is always the same....
1
by: newdev | last post by:
Hi All, Can somebody maybe please help me? - how do i screen scrape data from a dos application / window to .net application by using c#? - how do i screen scrape data from a dos application /...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.