FWIW, on Windows it took me a lot of searching to find a way to integrate the Viewer with Goldendict. GD has a Control+C+C special shortcut combination, but I wanted something mouse-driven.
So the only solution I found so far is using an AutoHotKey script together with the classic version of a mouse gesture program called StrokesPlus.
The AHK I need to keep running contains an action to clear the clipboard, copy selected text and send it to GD upon a
acSendKeys("%^r") mouse gesture action over calibre-parallel.exe for StrokesPlus:
Code:
!^r::
Clipboard := "" ;
SendInput, ^c
ClipWait, 2
if (Clipboard)
{
Run, c:\goldendict\goldendict.exe
Sleep, 300
SendInput, %Clipboard%
Sleep, 70
SendInput, {Enter}
}
return
This method works fine 95% of the time, but sometimes, for some reason, I have to right-click the script icon on systray and select "Reload this script"