Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clipboard PythonFu
#1
I can't paste a content from my clipboard in Windows to a new image in GIMP.

I have tryed to use:
pdb.gimp_edit_paste_as_new() from the Console,
and then it only give me the internal clipboard from GIMP.

I whant to do Arkive -> Create -> From Clipboard, 

The function could be easely activated with: 
shift+ctrl+V

But to do it manually seems complicated, and it do get me a new image from windows clipboard. But it seem that it should be possible to script it. Considering that it is only 3 keys to press, before I run my script.

I can not find any pythonfu or other way to activate it before my script, it is a function that is obviusly there, but that I have to use manualy.

Thanks
Reply
#2
I can confirm this. Scripts do not have access to the system clipboard, only to the Gimp internal clipboard.
Reply
#3
(08-23-2017, 04:40 PM)Ofnuts Wrote: I can confirm this. Scripts do not have access to the system clipboard, only to the Gimp internal clipboard.


Thanks, and I can't make GIMP push the keys "shift+ctrl+V" for me and wait for 1 second, and then push the "B" key that will activate my skript.
Reply


Forum Jump: