Solved

reading AfxWnd42s window

Posted on 2004-03-26
15
697 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

730 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