Is there a function to load/save a string from/to clipboard?
Is there a function to load/save a string from/to clipboard?
You have to make a form, or something like that. There is no built in function to do so.
Erm, I don't completely understand what you're after, but could .INIs help?
Richard.
<3
Originally Posted by Eminem
I think you both don't know what he wants... He just wants to get and put stuff from/to the clipboard (you know, when you copy stuff).
I don't think this is possible in SCAR :\ Maybe search the SRL manual?
Ce ne sont que des gueux
You mean... An invisible form as a sort of clipboard, that catches CTRL+C/CTRL+X key presses and then sort of puts them in it? Would be hard to catch the selected string I guess.
Ce ne sont que des gueux
No. Hold on, I just found the thread it was posted in:
http://www.villavu.com/forum/showthr...ight=clipboard
You'll have to use api calls or a plugin. I'm not sure if/what form components have clipboard properties (enabled).

SCAR Code:program CopyPasta;
var
F: TForm;
E: TEdit;
procedure InitForm;
begin
F:= CreateForm;
E:= TEdit.Create(F);
with E do
begin
Parent:= F;
PasteFromClipboard;
Writeln(Text);
end;
end;
procedure SafeInitForm;
var
V: TVariantArray;
begin
V:= [];
ThreadSafeCall('InitForm', V);
end;
begin
SafeInitForm;
end.
(Tootoot's)
There are currently 1 users browsing this thread. (0 members and 1 guests)