[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

reading AfxWnd42s window

Posted on 2004-03-26
15
Medium Priority
?
703 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 1200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
  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 …
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 how to clear a vector as well as how to detect empty vectors in C++.

649 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