     ControlSend, Edit1, {Enter}, % DC
 }
 
+DC_RunGet(Cmd, SaveClipboard := True) {
+    if (SaveClipboard) {
+        ClipSaved := ClipboardAll
+    }
+
+    Clipboard := ""
+
+    DC_Run(Cmd)
+
+    ClipWait, 1
+
+    if (SaveClipboard) {
+        Result := Clipboard
+
+        Clipboard := ClipSaved
+        ClipSaved := ""
+
+        return Result
+    }
+
+    return Clipboard
+}
+
 ; 返回值 [1]: left/right [2]: 左侧面板所占比例 0-100
 DC_GetPanelInfo() {
-    ClipSaved := ClipboardAll
-    Clipboard := ""
-    DC_Run("cm_CopyPanelInfoToClip")
-    ClipWait, 1
-
-    PanelInfo := StrSplit(Clipboard, " ")
-    Clipboard := ClipSaved
-
-    return PanelInfo
+    return StrSplit(DC_RunGet("cm_CopyPanelInfoToClip"), " ")
 }
 
 DC_ExecuteToolbarItem(ID) {

return

<DC_CopyFileContent>:
    Clipboard := ""
    DC_Run("cm_CopyFullNamesToClip")
    ClipWait, 1

    Fileread, Contents, % Clipboard
    Clipboard := Contents
return

<DC_CopyFilenamesOnly>:
    Clipboard := ""
    DC_Run("cm_CopyFullNamesToClip")
    ClipWait, 1

    SplitPath, Clipboard, OutFileName, , , OutFilenameNoExt

    if (InStr(FileExist(Clipboard), "D")) {
        Clipboard := OutFileName
    } else if (InStr(Clipboard, ".")) {
        Clipboard := OutFilenameNoExt
    }
return

<DC_CreateFileShortcut>:
    ClipSaved := ClipboardAll
    Clipboard := ""
    DC_Run("cm_CopyFullNamesToClip")
    ClipWait

    FilePath := Clipboard
    Clipboard := ClipSaved
    ClipSaved := ""


    OutVar := FileExist(FilePath)
    if (InStr(OutVar, "D")) {

return

<DC_PrevParallelDir>:
    SleepTime := 50

    OldPwd := DC_RunGet("cm_CopyCurrentPathToClip")

    if (StrLen(OldPwd) == 3) {
        ; 在根分区

        return
    }

    DC_Run("cm_ChangeDirToParent")
    Sleep, % SleepTime

    ; 可能没跳转过去 TODO
    DC_Run("cm_GoToPrevEntry")
    Sleep, % SleepTime

    DC_Run("cm_EnterActiveDir")
    Sleep, % SleepTime
return

<DC_NextParallelDir>:
    SleepTime := 50

    OldPwd := DC_RunGet("cm_CopyCurrentPathToClip")

    if (StrLen(OldPwd) == 3) {
        ; 在根分区

        return
    }
