• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 712
  • Last Modified:

reading AfxWnd42s window

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
bonkey
Asked:
bonkey
  • 4
  • 4
  • 3
  • +1
1 Solution
 
chensuCommented:
Is "AfxWnd42s" the window class name? It looks like the application is written in MFC.
0
 
bonkeyAuthor Commented:
This is how it shows up in spy++:

001403EE "" AfxWnd42s

No other info is given.
0
 
chensuCommented:
It is a customized window. There is no way to get the text unless it provides a way.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
bonkeyAuthor Commented:
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
 
chensuCommented:
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
 
bonkeyAuthor Commented:
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
 
chensuCommented:
Use Spy++ to see if any messages are involved when doing that.
0
 
lakshman_ceCommented:
0
 
jsw3nsonCommented:
What was the answer?  That link has been deleted...
0
 
lakshman_ceCommented:
Oops..

jsw3nson, could you please post your question so that you will get an answer.
0
 
jsw3nsonCommented:
How did you capture text from a AfxWnd42 window?
0
 
lakshman_ceCommented:
As I mentioned earlier you need to post separate question. This is a closed solution and shouldn't be appended with questions/answers.
0
 
jsw3nsonCommented:
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
 
lakshman_ceCommented:
Link is active now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 4
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now