Skip to content

Instantly share code, notes, and snippets.

@liberize
liberize / wox_yd.ahk
Last active May 23, 2019 14:43
autohotkey 取词并调用 wox 有道翻译
; 取词快捷键 ctrl+shift+d
^+d::
clipboard =
Send, ^c
ClipWait, 1
StringLen, cliplen, clipboard
if (cliplen > 1000 or cliplen < 2) {
return
}
Run, %USERPROFILE%\AppData\Local\Wox\Wox.exe
@liberize
liberize / powertoys.ahk
Last active October 2, 2025 00:25
AutoHotKey2 helper script for PowerToys
#NoTrayIcon
SendMode("Input")
SetWorkingDir(A_ScriptDir)
; -----------------------------------------------------------------------
; 1. PowerToys Peek
; Use only space key to trigger PowerToys Peek
; Credit: https://github.com/deanmongel/use-space-in-peek-of-powertoys