         SetTimer, WaitMenuOff2
     }
 return
+
 WaitMenuOff2:
     winget, menupop, , ahk_class #32768
     if not menupop
     {
-    SetTimer, WaitMenuOff2, off
-    goto, goonmove
-    }
-return
+        SetTimer, WaitMenuOff2, off
+        goto, GoonMove
+    }
+return
+
 GoonMove:
-    ControlFocus, %CurrentFocus% , ahk_class TTOTAL_CMD
+    ControlFocus, %CurrentFocus%, ahk_class TTOTAL_CMD
     SendPos(1005)
 return
 

    SendPos(526)
    SetTimer WaitMenuPop2
return
WaitMenuPop2:
    winget, menupop, , ahk_class #32768
    if menupop

    IniWrite, %TCPath%, %ConfigPath%, TotalCommander_Config, TCPath
    IniWrite, %TCINI%, %ConfigPath%, TotalCommander_Config, TCINI
}

Totalcomander_select_tcdir:
    Totalcomander_select_tcdir()
return

Totalcomander_select_tcdir()
{
    FileSelectFolder, tcdir, , 0, 打开TC安装目录
    GuiControl, , Edit1, %tcdir%
}
