Paste too fast
From: Jean-Pierre Lamon (gipi_removeme_at_ngscan.com)
Date: 11/20/03
- Next message: Steve Wash: "Re: shellexecute is (sometimes) very slow for msword or excel"
- Previous message: Diego Irrazabal: "Moving files.."
- Next in thread: Tomaz Koritnik: "Re: Paste too fast"
- Reply: Tomaz Koritnik: "Re: Paste too fast"
- Reply: Cruxy: "Re: Paste too fast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Nov 2003 19:09:31 +0100
Hi all,
I'm gonna try to be comprehensible :-)
I have an application that must copy some datas from a db into a set of
TMemo in another application.
I can find the external window with
WndName := 'MARC editor';
Wnd := FindWindow('TeditorWindow', PChar(WndName));
wnd := GetFocused(wndName);
Then, I can create a new TMemo in this external window sending some
shortcuts.
The new TMemo is created and empty. And I want to fill it with my DB's
datas.
WndChild := FindWindowEx(FindWindow('TeditorWindow', PAnsiChar(WndName)), 0,
'TMemo', PAnsiChar(''));
I fetch my DB, and datas are copied into the clipboard. I then paste them
sending a:
SendMessage(wndChild, wm_paste, 0, 0);
The datas are copied, it's ok. But sometimes, not in the right place. A new
TMemo is created before the datas are pasted. And the datas are pasted in
this new TMemo, not the pred one. What can I do to make my application wait
for datas being well pasted before launching a new TMemo creation.
Thx in advance
- Next message: Steve Wash: "Re: shellexecute is (sometimes) very slow for msword or excel"
- Previous message: Diego Irrazabal: "Moving files.."
- Next in thread: Tomaz Koritnik: "Re: Paste too fast"
- Reply: Tomaz Koritnik: "Re: Paste too fast"
- Reply: Cruxy: "Re: Paste too fast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|