 return
 
 RunClipboardWithMintty:
-    MsgBox, 4, 运行？, %clipboard%
-    ;MsgBox % RunWithBash(clipboard)
-    ;Run, mintty -e sh -c '%clipboard%; read'
-    IfMsgBox Yes
-        Run % "mintty -e sh -c '" clipboard "; read'"
+    RunWithMintty(clipboard)
     ExitApp
 return
 
-Test:
-    MsgBox, test
+Dictionary:
+    RunWithMintty("echo " . clipboard . " | ydcv")
     ExitApp
 return
 

    return exec.StdOut.ReadAll()
}

; ===========

RunNotepad:
    Run, notepad
    Send, ^v
    ExitApp


global msg

clipboardLength := StrLen(clipboard)
msg := "剪切板内容 " . clipboardLength . " 字节`n"
msg .= "--- `n"

if (clipboardLength <= 100)
{
    msg .= clipboard
}
else
{
    msg .= SubStr(clipboard, 1, 50)
    msg .= "`n ... `n"
    msg .= SubStr(clipboard, -50)
}

msg .= "`n--- `n`n"


@("s", "PasteToNotepad", "显示剪切板内容")
@("d", "Dictionary", "词典")
@("r", "RunClipboardWithMintty", "运行剪切板的命令")
@("c", "Calendar", "万年历")
@("2", "t2s", "繁体转简体")
@("z", "Test", "测试")

MsgBox, %msg%
