WM_KEYDOWN message



I have to replace a value (1,0030) with another (1,0050)
in a certain application. I have to do it 10000 times !
(I don't have the source code).
I started to do it manually by pressing the following keys:

Arrow down {move to next cell}
Shift-End {select content}
1,0050 {replace with a new value}
etc.

After 500 records I thought about writing my application,
which will be able to simulate pressing these keys.

I started:
h:=FindWindow(nil,TitleOfTheWindow); // it works
SendMessage(H,WM_CHAR,149,1) // it doesn't work

SendMessage sends a message to a window, but not to an active
control in this window.

How to send a message to an active control in an external application?

Please help me, else I will have to spend
at least three days introducing that terrible data.

Ted


.



Relevant Pages

  • Re: troubles with KDE(?)
    ... Ctrl + Alt + K. After pressing these keys, I was able to kill the window. ...
    (linux.redhat)
  • Re: X application keyboard snooper
    ... > would like to show what keys I'm currently pressing in a small window on the ... % apt-cache search record X11 ...
    (Debian-User)
  • Re: WM_KEYDOWN message
    ... I started to do it manually by pressing the following keys: ... SendMessage sends a message to a window, ... How to send a message to an active control in an external application? ...
    (comp.lang.pascal.delphi.misc)
  • Re: locked startup window
    ... When I select "Safe Mode", ... Despite pressing these three keys ... ... the password window. ...
    (microsoft.public.windowsxp.general)
  • Re: [PATCH] ncurses based config V2
    ... Fixed segfaults in help window. ... Added hot keys support. ... Optimized for 80x24 terminals. ... ESC prefix, I don't know). ...
    (Linux-Kernel)