shadowcon
2010-03-26 11:41:17
Is there any way in SCAR to store highlighted text (with the mouse) to a variable or store it to the clipboard?
2010-03-26 11:41:17
2010-03-26 11:43:11
2010-03-26 11:44:10
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.
2010-03-26 11:46:51
KeyDown(GetKeyCode('CTRL'));
KeyDown(GetKeyCode('C'));
KeyUp(GetKeyCode('CTRL'));
KeyUp(GetKeyCode('C'));2010-03-26 11:47:53
2010-03-26 11:50:19
program New;
begin
Wait(2000);
KeyDown(VK_CONTROL);
KeyDown(GetKeyCode('C'));
KeyUp(VK_CONTROL);
KeyUp(GetKeyCode('C'));
end.I put the wait in there so i could select some text.
2010-03-26 11:51:26
2010-03-26 11:52:27
2010-03-26 12:03:11