doubt in VC++ regarding Message Box
-
:confused:How to Extract information stored in the main part of any Message box window after it displays on Desktop? I want to retreive all the arguments send to Message box. The Message box is owned by a different application.
I feel it is very difficult to solve this problem. But I believe there is a solution for all problems. So here is a spark: We can manually copy the entire text and caption form a message box using Ctrl+C (am not sure, will it work for all the message boxes). Check the link : http://secretgeek.net/msgbox\_copy.asp http://weblogs.asp.net/chuckop/archive/2004/04/08/110153.aspx So my idea is: What about simulating the Ctrl + C and take the text from clipboard? It is only a spark :~
-
Aljechin wrote:
GetWindowText()
I guess this would work only to catch its caption.:~
--[V]--
VuNic wrote:
I guess this would work only to catch its caption.
for getting text of particular Window of other process you have to us WM_GETTEXT message!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
VuNic wrote:
I guess this would work only to catch its caption.
for getting text of particular Window of other process you have to us WM_GETTEXT message!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
VuNic wrote:
hmm... thanks thanks.. so this works different from the GetWindowText??
Would you like to read that your Self in the MSDN or you like to explaination by Me! :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
VuNic wrote:
hmm... thanks thanks.. so this works different from the GetWindowText??
Would you like to read that your Self in the MSDN or you like to explaination by Me! :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
Nope, I'm in the middle of some process here, so I just put the question further there , If it worries you, leave it. I'll look about it in MSDN later. No problem!
--[V]--
-
Nope, I'm in the middle of some process here, so I just put the question further there , If it worries you, leave it. I'll look about it in MSDN later. No problem!
--[V]--
VuNic wrote:
I'm in the middle of some process here,
Process HUMM................... :)
VuNic wrote:
so I just put the question further there
Then let me Explain, i am kiddin... By Design GetWindowText only Bring Caption of Window , remember by design. but GetWindowText use WM_GETTEXTÂ internally!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Nope, I'm in the middle of some process here, so I just put the question further there , If it worries you, leave it. I'll look about it in MSDN later. No problem!
--[V]--
VuNic wrote:
I'm in the middle of some process here, so I just put the question further there ,
Humm Process :)
VuNic wrote:
o I just put the question further there
Actually By Design GetWindowText Brings the Caption of the Remote Window, remember by Design.though interally it make call to the WM_GETTEXT!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Nope, I'm in the middle of some process here, so I just put the question further there , If it worries you, leave it. I'll look about it in MSDN later. No problem!
--[V]--
VuNic wrote: I'm in the middle of some process here, so I just put the question further there , Humm Process VuNic wrote: o I just put the question further there Actually By Design GetWindowText Brings the Caption of the Remote Window, remember by Design.though interally it make call to the WM_GETTEXT!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Re
-
VuNic wrote: I'm in the middle of some process here, so I just put the question further there , Humm Process VuNic wrote: o I just put the question further there Actually By Design GetWindowText Brings the Caption of the Remote Window, remember by Design.though interally it make call to the WM_GETTEXT!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Re
Yup Alok, that's what I knew, it would internally use GETTEXT, but why does this get supressed when its called by GetWindowText? I tried to take the text off a notepad, but I failed there. Actually I got the handle of notepad's client window from spy ++ and tried GetWindowText, but didn't work. so you mean, here sending GETTEXT would work??
--[V]--
-
Yup Alok, that's what I knew, it would internally use GETTEXT, but why does this get supressed when its called by GetWindowText? I tried to take the text off a notepad, but I failed there. Actually I got the handle of notepad's client window from spy ++ and tried GetWindowText, but didn't work. so you mean, here sending GETTEXT would work??
--[V]--
VuNic wrote:
but didn't work. so you mean, here sending GETTEXT would work??
By Design GwtWindowText bring the Caption of Window:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Re