New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

How to get the content in translateLine by another app?

General discussion

How to get the content in translateLine by another app?

Postby michaelhe » Fri Mar 18, 2011 3:12 pm

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.
michaelhe
 
Posts: 4
Joined: Fri Mar 11, 2011 6:19 am

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

Postby michaelhe » Tue Mar 22, 2011 7:30 am

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.
michaelhe
 
Posts: 4
Joined: Fri Mar 11, 2011 6:19 am


Return to General

Who is online

Users browsing this forum: No registered users and 16 guests