Solved

reading AfxWnd42s window

Posted on 2004-03-26
15
682 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

743 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

11 Experts available now in Live!

Get 1:1 Help Now