in reply to Perl::Tk app to manipulate pasted text on the fly

Just a tidbit of a thought...... IIRC, the last time I experimented with cut-n-paste sort of things, the most reliable in my testing was the Tk::Text widget. The biggest glitch was when copying, did it automatically get the text into both the mouse-paste-clipboard, as well as the menu paste selection( control-v). See Tk copy to mouse clipboard

Also I found using Tk in a withdrawn state, gave good results

#!/usr/bin/perl use warnings; use strict; use Tk; use Tk::Clipboard; my $mw = tkinit; $mw->withdraw; #use Tk without showing a window my $content = 'foobar'.time; print "$content\n"; $mw->clipboardClear; $mw->clipboardAppend($content); MainLoop;

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Perl::Tk app to manipulate pasted text on the fly
by arbingersys (Pilgrim) on Feb 02, 2008 at 16:52 UTC
    Thanks for the pointers. I appreciate it.