Solved

reading AfxWnd42s window

Posted on 2004-03-26
15
685 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maze travler 6 51
C++ - Loading Managed Assembly From Memory in Unmanaged Process 25 431
passing data from one form to another form in c++ 27 75
Safe conversion? 4 58
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 …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

867 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now