What is the best way for scar to copy/paste... The keydown(17 +67); and keydown(17 + 86); or what?
What is the best way for scar to copy/paste... The keydown(17 +67); and keydown(17 + 86); or what?
Well on the Delphi form components there are functions for copying and pasting. And for copying text on another thing, just make sure it is selected somehow; and then try something like this:
Likewise for v.SCAR Code:KeyDown(VK_CONTROL);
KeyDown(GetKeyCode('c'));
KeyUp(GetKeyCode('c'));
KeyUp(VK_CONTROL);
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Thanks.
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.
Just something that someone posted. Pastes what's in the clipboard. I find it nifty.
There are currently 1 users browsing this thread. (0 members and 1 guests)