Re: sendmessage and windows

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • Re: sendmessage and windows
    ... Karl E. Peterson wrote: ... get when you type run cmd.exe - but it just changes the title bar ... I can do it in Wordpad. ... But if the window chooses to ignore WM_SETTEXT messages, ...
    (microsoft.public.vb.winapi)
  • Re: sendmessage and windows
    ... Poldie wrote: ... get when you type run cmd.exe - but it just changes the title bar ... I can do it in Wordpad. ... But if the window chooses to ignore WM_SETTEXT messages, ...
    (microsoft.public.vb.winapi)
  • Re: sendmessage and windows
    ... Poldie wrote: ... get when you type run cmd.exe - but it just changes the title bar ... I can do it in Wordpad. ... But if the window chooses to ignore WM_SETTEXT messages, ...
    (microsoft.public.vb.winapi)
  • Re: What does this mean ?
    ... > souls will post the text from the DEFINE WINDOW help topic from FPW? ... SCHEME clauses that let you specify colors of user-defined objects directly. ... A color pair consists of a foreground and background color combination. ... DEFINE BAR ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Display properties-Appearance-Wesley help?
    ... Is the Menu bar; ... Font choice, font color, font size and Bold ... That is called the Menu bar and is listed as Menu in the Window ... Color 1 is the bar background color. ...
    (microsoft.public.windowsxp.newusers)