Gimp-Forum.net

Full Version: Clipboard PythonFu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
I can confirm this. Scripts do not have access to the system clipboard, only to the Gimp internal clipboard.
(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.
Ofnuts hi,
You are mentioned in a script : simple_shape_centered.py  (tin tan and ... too)

I got it working in w10 gimp 2.10  with
my  guidelab_paint.py 
But very strange, each call of the  simple_shape_centered of  a python black window occures ???
Years ago in gimp 2.8 it was not like that ...

Hopefully the added picture is shown here ;-)

Dear Admin,
Is it possible to activate an older account (this one is a newbie)

(there should be, I think twoo others with in the name PKHG)

Thanks
     Peter