     ControlGetPos, , , wp, hp, TPanel1, ahk_class TTOTAL_CMD
     ControlGetPos, , , w1, h1, TMyListBox1, ahk_class TTOTAL_CMD
     ControlGetPos, , , w2, h2, TMyListBox2, ahk_class TTOTAL_CMD
-    if (wp  < hp)     ;纵向
-        {
-        if (abs(w1 - w2) > 2  )
+    if (wp < hp)
+    {
+        ;纵向
+        if (abs(w1 - w2) > 2)
             SendPos(909)
         else
             SendPos(910)
-        }
-    else    ;横向
-        {
-        if (abs(h1 - h2)  > 2  )
+    }
+    else
+    {
+        ;横向
+        if (abs(h1 - h2)  > 2)
             SendPos(909)
         else
             SendPos(910)
-        }
-    return
+    }
+return
 
 ;使用外部查看器打开（alt+f3）
 <TC_OpenWithAlternateViewer>:

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


    Send {Tab}
return

Totalcomander_select_tc:
    Totalcomander_select_tc()
return

Totalcomander_select_tc()
{
    GUI, FindTC:Default
    GuiControlGet, dir, , Edit1
    TCPath := dir "\totalcmd.exe"
