 */
 
 DoubleCommander:
-    global DC := "ahk_class DClass"
+    global DC_Class := "TTOTAL_CMD"
+    global DC := "ahk_class " . DC_Class
     global DC_Dir := "c:\mine\app\doublecmd"
+    global DC_Path := "c:\mine\app\doublecmd\doublecmd.exe --no-splash"
     ; 用于记录文件打开对话框所属窗体
     global DC_CallerId := 0
 
     DC_Name := "DoubleCommander"
 
-    vim.SetWin(DC_Name, "DClass", "doublecmd.exe")
+    vim.SetWin(DC_Name, DC_Class, "doublecmd.exe")
     vim.Mode("normal", DC_Name)
 
     vim.BeforeActionDo("DC_ForceInsertMode", DC_Name)


    DC_Run("cm_CopyCurrentPathToClip")

    ClipWait, 2
    pwd := Clipboard

    Clipboard := ""
    DC_Run("cm_CopyNamesToClip")
    ClipWait, 2

    WinActivate, ahk_id %DC_CallerId%
    WinWait, ahk_id %DC_CallerId%

    }

    if (InNewTab) {
        Run, %DC_Path% -C -T "%LeftOrRight%" "%Path%"
    } else {
        Run, %DC_Path% -C "%LeftOrRight%" "%Path%"
    }
}
