Using a value in the clipboard ? Thread last updated on 2008-03-10 17:53:31

Posted by member 288678 on 2008-03-10 09:40:08

Hello guys !

As you know, xProp allows to copy its current value to clipboard using "!XPropCopyContents".

I was wondering...What would be the easiest way to send this clipboard value to themevars ?

I already looked in the mzscript and xtextedit docs, but I didn't find any references about the clipboard...

I also took a look to Python, and I think i may have found a way : http://www.suttoncourtenay.org.uk/duncan/accu/ScriptingC.html#ctypes-example

And I imagine it could also be possible using LSlua...

But my skill in all those language is just above zero...(just like my english^^), so what in your opinion would be the easiest way to do it ? Or is it way too much complicated ?


Anyway, thanks in advance :)

Ps: I hope there's no other similar thread, but lemmings are still working ;-)

Posted by member 212670 on 2008-03-10 15:31:07 link

Of course you're using xlabel in your theme... so, look up !LabelInfoExport

As an example, in my FBL Dynamic theme, I do...
*Script exec !XPropCopyHexCode
*Script exec !LabelInfoExport %%clrtxt%% [clipboardText]

...and then use clrtxt as an mz var, like %{clrtxt}.

Posted by member 288678 on 2008-03-10 17:53:29 link

Thank you xcal, this is exactly what i was thinking of ! Amazing! 3 years ago^^
And I'm used the lastest xlabel module, I should have mentionned it, my bad.

I didn't knew your FBL Dynamic theme, and it's really a masterpiece ! Totally customizable, presets savers, "xprop picker" , how could i missed this theme ?
Everything I need to do my own try is inside, gonna play with it for a long time :)
Thanks again !