         IconFileIndex := RegExReplace(IconFile, ".*, ", "")
         IconFileIndex := IconFileIndex>=0?IconFileIndex+1:IconFileIndex
         ;MsgBox, %Ext%_%IconFile%_%IconFilePath%_%IconFileIndex%
-        If Not FileExist(IconFilePath)
+        if Not FileExist(IconFilePath)
             Menu, FileTemp, Icon, %ft%, %A_WinDir%\system32\Shell32.dll, 1 ;-152
-        Else
+        else
             Menu, FileTemp, Icon, %ft%, %IconFilePath%, %IconFileIndex%
     }
 }

    IfWinExist, AHK_CLASS TTOTAL_CMD
    {
        WinGet, AC, MinMax, AHK_CLASS TTOTAL_CMD
        If Ac = -1
            Winactivate, AHK_ClASS TTOTAL_CMD
        Else
        Ifwinnotactive, AHK_CLASS TTOTAL_CMD
            Winactivate, AHK_CLASS TTOTAL_CMD
        Else
            Winminimize, AHK_CLASS TTOTAL_CMD
    }
    Else
    {
        Run, %TCPath%
        Loop, 4
        {
            IfWinNotActive, AHK_CLASS TTOTAL_CMD
                WinActivate, AHK_CLASS TTOTAL_CMD
            Else
                Break
            Sleep, 500
        }

{
    location := 0
    ControlGetPos, x1, y1, , , %TCPanel1%, AHK_CLASS TTOTAL_CMD
    if x1 > %y1%
        location += 2
    ControlGetFocus, TLB, ahk_class TTOTAL_CMD
    ControlGetPos, x2, y2, wn, , %TLB%, ahk_class TTOTAL_CMD
    if location
    {
        if x1 > %x2%
            location += 1
    }
    else
    {
        if y1 > %y2%
            location += 1
    }
    return location
