by "Perl to help me with clipboard" I meant that I copied something into clipboard elsewhere (not in my application), then run my one-liner and have in my clipboard something else.
Say, I start Mozilla, make a selection, and then in menu item "Edit->Copy" place a selection into clipboard.
Can I write a one-liner to, say, upcase contents of clipboard, when I paste it elsewhere, I will see upcased content of selection in that Mozilla, which could be un-selected to the moment already?
Also, it must work without X11 also.
In win32 I do this as: perl -MWin32::Clipboard -we "$clip=Win32::Clipboard;$clip->Set(uc($clip->Get())" my last example is lenghty, but I have wrappers so my actual one-liner is much shorter.
In reply to Re^2: how do I place text into clipboard on Linux?
by Courage
in thread how do I place text into clipboard on Linux?
by Courage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |