Quote:
Originally Posted by ownedbycats
Is there a way to pass the clipboard contents to a SFE? I was thinking maybe a chain variable. Or maybe I can just add the template itself to the variable.
|
The template produces a string. You can do whatever you want with it.
EDIT: or are you asking if you can get the actual clipboard contents? Yes. This line in the template does that.
Code:
text = str(QApplication.clipboard().text()).strip()
You could store this template to use in other templates:
Code:
python:
def evaluate(book, context):
from qt.core import QApplication
return str(QApplication.clipboard().text()).strip()