Results 1 to 4 of 4

Thread: Help With Copy/Paste

  1. #1
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help With Copy/Paste

    What is the best way for scar to copy/paste... The keydown(17 +67); and keydown(17 + 86); or what?

  2. #2
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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:
    SCAR Code:
    KeyDown(VK_CONTROL);
    KeyDown(GetKeyCode('c'));
    KeyUp(GetKeyCode('c'));
    KeyUp(VK_CONTROL);
    Likewise for v.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  3. #3
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks.

  4. #4
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •