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.
-
: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.
No matter who owns the messgae box. After something is displayed on the screen, it is no more available as text it will be bitmap. You will need to use OCR. I dont know if there is an alternative. I dont know if
GetWindowText()
will work. But you will need the handle of that window still. :rose: -
No matter who owns the messgae box. After something is displayed on the screen, it is no more available as text it will be bitmap. You will need to use OCR. I dont know if there is an alternative. I dont know if
GetWindowText()
will work. But you will need the handle of that window still. :rose:Aljechin wrote:
I dont know if GetWindowText() will work. But you will need the handle of that window still.
I Believe thats not the Solution!
"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
-
: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.
Do the following 1. if u dont have the window(messsagebox) get it using FindWindow or some other API 2. GetNextWindow (pass GW_CHILD) as the flag to find the window. I donno in which order the windows has placed in teh message box. so iterate till end. 3. Use GetWindowText by passing the find result. this is applicable if the message box is created using normal MessageBox API. SaRath
-
: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.
Javagal Srinath wrote:
want to retreive all the arguments send to Message box. The Message box is owned by a different application.
Hook MessageBox api !
"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
-
Do the following 1. if u dont have the window(messsagebox) get it using FindWindow or some other API 2. GetNextWindow (pass GW_CHILD) as the flag to find the window. I donno in which order the windows has placed in teh message box. so iterate till end. 3. Use GetWindowText by passing the find result. this is applicable if the message box is created using normal MessageBox API. SaRath
SaRath C wrote:
1. if u dont have the window(messsagebox) get it using FindWindow or some other API
Sorry if Sound Rude, how will determine that is messagebox window as it Normal Dialog Box!
"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
-
No matter who owns the messgae box. After something is displayed on the screen, it is no more available as text it will be bitmap. You will need to use OCR. I dont know if there is an alternative. I dont know if
GetWindowText()
will work. But you will need the handle of that window still. :rose:Aljechin wrote:
GetWindowText()
I guess this would work only to catch its caption.:~
--[V]--
-
: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