Solved

Copy Text to clipboard by WinAPI...

Posted on 1998-06-29
4
1,230 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
  • 2
4 Comments
 
LVL 5

Expert Comment

by: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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now