View Single Post
Old 09-30-2023, 03:09 PM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,639
Karma: 7908443
Join Date: Sep 2020
Device: none
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"

Last edited by Comfy.n; 09-30-2023 at 03:19 PM.
Comfy.n is offline   Reply With Quote