Solved

reading AfxWnd42s window

Posted on 2004-03-26
15
689 Views
Last Modified: 2010-08-05
I am trying to log the text from a text box on a window.

Spy++ shows the child window as AfxWnd42s. I can't find out any information on what that is. Spy++ does not show the text being updated as the text is written.

I have tried WM_GETTEXT and WM_COPY. It doesn't show as being a listbox or anything specific.

I am really lost as to how to get access to this text.

I am posting the URL to the download if you think you may be able to help.

It is a poker site, but you can download the sotware and see the textbox I'm talking about without playing or signing up or anything. Just click on a table where people are playing and you will see the text box in the bottom left of the screen.

http://www.pokerstars.com/

Thanks in advance for your help.

--Bonkey
0
Comment
Question by:bonkey
  • 4
  • 4
  • 3
  • +1
15 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 10690059
Is "AfxWnd42s" the window class name? It looks like the application is written in MFC.
0
 

Author Comment

by:bonkey
ID: 10690103
This is how it shows up in spy++:

001403EE "" AfxWnd42s

No other info is given.
0
 
LVL 23

Expert Comment

by:chensu
ID: 10690182
It is a customized window. There is no way to get the text unless it provides a way.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:bonkey
ID: 10690190
It does provide for you to select the text and copy it. But that is the only way I know of getting it. Is there a way to automate that process?
0
 
LVL 23

Expert Comment

by:chensu
ID: 10690289
For a standard edit control, you can use the EM_SETSEL and WM_COPY messages. You might want to give it a try to see if it supports the same thing.
0
 

Author Comment

by:bonkey
ID: 10690311
I tried manually selecting some data and doing a WM_COPY. It works in notepad, but not in this case. It allows copying, but not using the normal methods.
0
 
LVL 23

Expert Comment

by:chensu
ID: 10690406
Use Spy++ to see if any messages are involved when doing that.
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 400 total points
ID: 10691065
0
 

Expert Comment

by:jsw3nson
ID: 14734358
What was the answer?  That link has been deleted...
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 14742766
Oops..

jsw3nson, could you please post your question so that you will get an answer.
0
 

Expert Comment

by:jsw3nson
ID: 14742933
How did you capture text from a AfxWnd42 window?
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 14745273
As I mentioned earlier you need to post separate question. This is a closed solution and shouldn't be appended with questions/answers.
0
 

Expert Comment

by:jsw3nson
ID: 14776893
If this is closed then it should also be removed because the answer is not valid anymore.  I am mererly asking what was the solution.  The link above is not valid.  So post the solution or remove the question.
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 14790140
Link is active now.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question