![]() |
2010-04-27
, 17:01
|
Posts: 324 |
Thanked: 371 times |
Joined on Dec 2009
@ Vancouver, BC
|
#2
|
python copy_clipboard.py "This will be copied to the clipboard"
import gtk import sys arg = sys.argv[1] def receive(clipboard, text, data): gtk.main_quit() clip = gtk.clipboard_get() clip.request_text(receive) clip.set_text(arg) gtk.main()
The Following 4 Users Say Thank You to Slocan For This Useful Post: | ||
![]() |
2010-04-27
, 18:32
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#3
|
A little further explanation, I make a lot of use of ssh sessions to my device and quite often I'd like to send some text (a link , get to a web page, etc.) that I have running on my laptop to use it in conversations or browser.
Is there a specific file where the clipboard resides that I can overwrite? or is this solely in memory?