Page 1 of 1

How to get the content in translateLine by another app?

PostPosted: Fri Mar 18, 2011 3:12 pm
by michaelhe
Hi there,
I was trying to write a small application (running on Windows) to get the word in the control translateLine.
It is easy on if GoldenDict is a traditional Windows app. All you have to do is to send a message to the edit control.
But I am a QT newbie, I really don't know how.
is there a way to communicate with GoldenDict? I mean, app <-> app.
Thanks a lot.

Re: How to get the content in translateLine by another app?

PostPosted: Tue Mar 22, 2011 7:30 am
by michaelhe
I patched the source code of GoldenDict a little bit.
the patch adds a new behavior: copy the word to clipboard when it receives a particular message.
my tool will send the message, then copy from the clipboard.
so far so good.