I found a clipboard module (Power Clipboard tool for PyS60 written by Atrant) and it is only in pure python code Text paste in clipboard is stored in one file clpboard.cbd !
I try it with 2nd and 3rd device (I changed slightly the code for finding the clipboard file location c: , d: or e: )
You can use two functions : Get for obtaining clipboard contents and Set for setting new clipboard contents.
Works also with multiple lines !
Before launching this example code open new text message application
and write "hello". Copy text with pencil key and keypad in clipboard
now you can launch the script
After launching this script you can paste "bye" in your SMS !!!
print clip # print "hello"
clipboard.Set(u"bye") # change clipboard contents with "bye"
print clipboard.Get() # print "bye"
link : Power Clipboard tool for PyS60 1.1 by Atrant