Re: WM_KEYDOWN message
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sat, 15 Apr 2006 08:28:03 GMT
On Fri, 14 Apr 2006 21:19:23 +0200, "Tadek"
<ted66_USUN_TO_@xxxxxxxxxxxxx> wrote:
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?
You might be better off using Keybd_event for sending the keys
Does WM_GETTEXT get the contents correctly ?
.
- Follow-Ups:
- Re: WM_KEYDOWN message
- From: Tadek
- Re: WM_KEYDOWN message
- From: Tadek
- Re: WM_KEYDOWN message
- References:
- WM_KEYDOWN message
- From: Tadek
- WM_KEYDOWN message
- Prev by Date: Re: Free software licence text for my application?
- Next by Date: Re: Free software licence text for my application?
- Previous by thread: WM_KEYDOWN message
- Next by thread: Re: WM_KEYDOWN message
- Index(es):
Relevant Pages
|