Tech Support > Microsoft Windows > Development Resources > Simulating a paste
Simulating a paste
Posted by Fernando Rodriguez on May 8th, 2007



Hi,

I want to write a small utility that detects when I press a certain key combination
and the pastes a given text into the active window handle. What's the best
way to simulate this pasting? The ideal solution for me would be to send
rtf and ascii text and let the window chose which one it supports.

Thanks,
Fernando


Posted by r_z_aret@pen_fact.com on May 8th, 2007


On Tue, 8 May 2007 08:07:45 +0000 (UTC), Fernando Rodriguez
<fernandoREMOVE_THIS@easyjob.net> wrote:

I think one of these functions is relevant:
SetWindowText
OpenClipboard (and relatives)


-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com


Similar Posts