Controlling other applications?
-
Hello everyone! Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program. Thanks in advance!
Windows Calculator told me I will die at 28. :(
Yes, it's called subclassing. Basically you can steal any messages from the other window, modify it it, eat it, pass it on, or do whatever you want with it. Been awhile since I've done it, but you can replace an existing windows WndProc with your own, using SetWindowLong and GWL_WNDPROC. There are a ton of articles on CP, but can't seem to locate the one I was thinking of... [edit] Look at CWnd::SubclassWindow or CWindowImpl::SubclassWindow if using ATL/WTL. [/edit]
- S 50 cups of coffee and you know it's on!
-
Hello everyone! Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program. Thanks in advance!
Windows Calculator told me I will die at 28. :(
-
Hello everyone! Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program. Thanks in advance!
Windows Calculator told me I will die at 28. :(
Lord Kixdemp wrote:
Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program.
WM_GETTEXT and WM_GETTEXTLENGTh will help!, and for reteriving Window Handle of particular Control! use FindWindow Api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
Hello everyone! Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program. Thanks in advance!
Windows Calculator told me I will die at 28. :(
Lord Kixdemp wrote:
Windows Calculator told me I will die at 28.
how to calculate that??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
Lord Kixdemp wrote:
Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program.
WM_GETTEXT and WM_GETTEXTLENGTh will help!, and for reteriving Window Handle of particular Control! use FindWindow Api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
Long time no see! Been busy with work? :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
-
Long time no see! Been busy with work? :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
brahmma wrote:
Long time no see! Been busy with work?
Changed my job. so busy learning new stuff!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
Lord Kixdemp wrote:
Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program.
WM_GETTEXT and WM_GETTEXTLENGTh will help!, and for reteriving Window Handle of particular Control! use FindWindow Api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
Hmm... Well, thanks all for your suggestions! :) However, I doubt any of these work on Internet Explorer controls... And how would I get the window text if it always changes depending on the page being viewed? Please don't think I'm teh skr1pt k1dd1e, I need this for something else. ;P Thanks!
Windows Calculator told me I will die at 28. :(
-
Lord Kixdemp wrote:
Windows Calculator told me I will die at 28.
how to calculate that??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
Since everyone keeps asking this, I'll answer it. :laugh: Year of birth - 1337: convert to hex: remove letters 1989 - 1337 = 652: 28C: 28
Windows Calculator told me I will die at 28. :(
-
Since everyone keeps asking this, I'll answer it. :laugh: Year of birth - 1337: convert to hex: remove letters 1989 - 1337 = 652: 28C: 28
Windows Calculator told me I will die at 28. :(
Lord Kixdemp wrote:
Year of birth - 1337: convert to hex: remove letters 1989 - 1337 = 652: 28C: 28
:omg:
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Lord Kixdemp wrote:
Year of birth - 1337: convert to hex: remove letters 1989 - 1337 = 652: 28C: 28
:omg:
Mark Salsbery Microsoft MVP - Visual C++ :java:
I am such a skilled mathematician. :-D
Windows Calculator told me I will die at 28. :(