Results 1 to 9 of 9

Thread: Clipboard

  1. #1
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Clipboard

    Is there a function to load/save a string from/to clipboard?

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    You have to make a form, or something like that. There is no built in function to do so.

  3. #3
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Erm, I don't completely understand what you're after, but could .INIs help?

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  4. #4
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    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


  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    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?
    No, I know what he wants. The solution has been posted before, but it involves making an invisible form, amongst other things. I can't remember what, though.

  6. #6
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    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


  7. #7
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    No. Hold on, I just found the thread it was posted in:
    http://www.villavu.com/forum/showthr...ight=clipboard

  8. #8
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    You'll have to use api calls or a plugin. I'm not sure if/what form components have clipboard properties (enabled).

  9. #9
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    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)

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
  •