Re: sendmessage and windows
- From: erewhon@xxxxxxxxxx (J French)
- Date: Tue, 03 Oct 2006 12:42:59 GMT
On 2 Oct 2006 23:47:01 -0700, "Poldie" <Poldie@xxxxxxxxx> wrote:
Karl E. Peterson wrote:
Poldie wrote:
I want to send text to some windows - for example, the `dos box` you
get when you type run cmd.exe - but it just changes the title bar
text. I can do it in Wordpad. I've poked around with Spy+ but can't
find anything. Am I asking the impossible? There must be some way of
sending text to any window, surely?
Sure. But if the window chooses to ignore WM_SETTEXT messages, what
difference does it really make? Try to imagine this in context -- yelling
at a deaf person, doesn't improve the odds of their comprehending what
you're on about, eh?
Sure. But is a dos box death? I can type into it just fine. Perhaps
SendMessage is the wrong API call but surely there's a way of sending
keystokes to it from an app as if they've come from a user typing?
Try Keybd_Event and Console
The Console stuff is a bit painful, but probably the most robust
solution.
.
- References:
- sendmessage and windows
- From: Poldie
- Re: sendmessage and windows
- From: Karl E. Peterson
- Re: sendmessage and windows
- From: Poldie
- sendmessage and windows
- Prev by Date: Re: Declaring functions from an external dll
- Next by Date: Re: Declaring functions from an external dll
- Previous by thread: Re: sendmessage and windows
- Next by thread: Re: sendmessage and windows
- Index(es):
Relevant Pages
|