Hello,
here the alternative to the online translation, I posted previously.
This scripts switches to the window of jDictionary (OpenSource Dictionary:
http://jdictionary.sourceforge.net/), which has to be already started, and put the word, which was under the mouse when shift-right-clicked, in the edit mask and automatically starts the search.
You maybe have to adapt the coordinates of the edit mask at the end of the script, since shortcuts were not supported.
Cheers
Rudi
PS Please forgive my bad english
Code:
;Translation English<=>German with jDictionary
#SingleInstance force
;Hotkey combination is Shift+RightMouseButton
+RButton::
;Wait for Shift key is released
KeyWait, Shift, T1
;Double Click to select the word under the mouse
MouseClick,L,,,2
;Clear the clipboard and copy to it
Clipboard =
Send ^c
ClipWait 0.5
;jDirectory aktivieren
WinActivate ahk_class info.jdictionary.JDictionaryFrame
WinWaitActive ahk_class info.jdictionary.JDictionaryFrame
;Delete old entry
;Coordinates of the edit mask
MouseClick, L, 368, 198, 2
Send {Del}
SendRaw %Clipboard%
Send {Enter}
return