That is GoldenDict double-click Scan Popup AutoHotKey (Standalone EXE)「这是一个用于Window
的基于AutoHotKey
实现的双击取词工具」
注意:AutoHotKey使用了Hook技术对鼠标和键盘进行监控,影响系统稳定性且易被严苛的杀毒软件视为木马或病毒,请谨慎使用。
How to install「安装」:
Scan popup.exe
into GoldenDict installed Folder (GoldenDict.exe and Scan popup.exe
at Same Folder)
「将Scan popup.exe
放到GoldenDict.exe
所在的目录」Scan popup.exe
创建一个桌面快捷方式」How to Use「使用」:
Scan popup.exe
「启动Scan popup.exe
」托盘区
且为暂停模式
」Suspend mode means that hotkey is disabled.「
暂停模式
意味着取词功能未启用」
暂停模式
」NOTE: use whenever you need it and put it in suspend mode after that. So it doesn’t bother you.
注意:不用时请将其设置为
暂停模式
,以避免其对系统或其它应用造成不必要的影响。
Tested:
Download Scan popup with this full document:
~LButton::
Loop {
LButtonDown := GetKeyState("LButton","P")
If (!LButtonDown)
Break
}
WaitTime:=DllCall("GetDoubleClickTime")/4000
KeyWait, LButton, D T%WaitTime%
If errorlevel=0
GoSub, Routine
Return
Routine:
{
ifwinactive ahk_class CabinetWClass
{
return
}
clipboard =
send ,^c
ClipWait,1
StringLen, cliplen, clipboard
if cliplen > 20
{
; Avoid sending things that are not English words to GoldenDict for translation.
return
}
if cliplen < 2
{
; Avoid sending things that are not English words to GoldenDict for translation.
return
}
; send,{Ctrl down}cc{Ctrl up} can use this line or down
run GoldenDict.exe %clipboard%
}
return