Solved

Copy Text to clipboard by WinAPI...

Posted on 1998-06-29
4
1,249 Views
Last Modified: 2008-02-01
Hi,
I wants to place a text in clipboard, is possible by means of WinAPI, as far as using module Clipbrd my program sharply enlarges a volume?
0
Comment
Question by:DValery
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Tom Knowlton
ID: 1356383
What about...

procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.CopyToClipboard;
  Edit1.PasteFromClipboard;
end;

Does this help?


0
 
LVL 1

Author Comment

by:DValery
ID: 1356384
I does not want to use any VCL... :(
0
 
LVL 4

Accepted Solution

by:
BoRiS earned 10 total points
ID: 1356385
dvalery

use the following API calls....

1.      OpenClipboard  - function.
2.      EmptyClipboard  - function.
3.      SetClipboardData  - function  
4.      CloseClipboard  - function.

just check the function out in the win32 help...

Later
BoRiS
0
 
LVL 1

Author Comment

by:DValery
ID: 1356386
Thank you, it that I wanted.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question