🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1208

How to paste the text in the clip board in to other application?

#1208
From: Emmanuel
Date: Tue, 09 Oct 2007 04:12
16 lines
1322 bytes
Dear All,

I am try to paste some text from Clipboard to other Apllication, but I find 
fail to do it by me code.

void __fastcall Paste(AnsiString C)
{Clipboard()->AsText=C;
 keybd_event(VK_CONTROL, 0, 0,0);
 keybd_event('v', 0, 0,0);
 keybd_event('v', 0, KEYEVENTF_KEYUP,0);
 keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP,0);
}

Would anybody teach me?

Thank you 
Technical Details
Message-ID: <470aff65@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a7950ca98ad5a21f,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to paste the text in the clip board in to other application?
Date: Tue, 9 Oct 2007 12:12:01 +0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 121.35.184.245
Message-ID: <470aff65@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1191903077 121.35.184.245 (8 Oct 2007 21:11:17 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail