Registering and logging in removes this ad.
Registering and logging in removes this ad.
Vocola, Text to Clipboard via Eval()
Submitted by udo on Sun, 01/20/2008 - 13:37.
Hello all,
I want to copy a text created via a Vocola command to the clipboard and optionally
paste it from there to the target app, e. g. via Eval( [Text_to_Clipboard] ).
That means the result of calling Eval( ... ) is just like a {Strg+v}, but how
can I send ( [Text_to_Clipboard] ) to the clipboard (with Python?)?
Thanks and greetings
Udo



Hello Udo, These sort of
Hello Udo,
These sort of things are likely to be done with Unimacro better, but this clipboard trick is not implemented, I think.
Please give more precise description of your question.
I suspect Vocola people try to do too much with vocola, should interact/cooperate with unimacro sooner.
I have, with a little hack, coupled vocola and unimacro for 99%
Quintijn
Hello Quintijn, what I
Hello Quintijn,
what I wanted to archive is something like
Copy special = eval( CopyToClipboard( "The % Text") ) ;I solved it with SaxBasic. It was the easiest way,
because I must additionally replace "%" with the current
content of the clipboard, e. g.:
Clipboard old: new
Clipboard new: The new Text
Thanks and greetings
Udo
using natlink, you can get
using natlink, you can get stuff from the clipboard using
natlink.getclipboard()
and you can put stuff in the clipboard using
win32clipboard.OpenClipboard(0)
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardText(f)
win32clipboard.CloseClipboard()
where the variable f contains the text you want to put in the clipboard.
Hope that helps.
Unimacro has all this
Unimacro has all this already inside, so these should be preferable above newly written functions
See unimacro page on unimacro shorthand commands (rather far towards the bottom of that page
But Udos question requires a bit more I would think.
Maybe the Eval function of vocola can access the unimacro functions.
Quintijn
This can't be done with
This can't be done with current (including 2.6) versions of Vocola. I suggest creating this command instead in one of the other systems like Unimacro, DNS, or NatLink.