Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    my $mw = MainWindow->new();
    $mw->SelectionHandle( -selection => 'CLIPBOARD', sub { return 'clip' }
    + );
    $mw->SelectionOwn( -selection => 'CLIPBOARD' );
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    my $mw = MainWindow->new();
    $mw->SelectionHandle( -selection => 'PRIMARY', sub { return 'clip' } )
    +;
    $mw->SelectionOwn( -selection => 'PRIMARY' );