 ; 检查文件模板功能（新）
 FileTempMenuCheckNewStyle()
 {
-    Global TCPath
+    global TCPath
     Splitpath, TCPath, , TCDir
 
-    blankico := False
+    blankico := false
 
     if FileExist(TCDir "\shellnew\blankico")
     {
-        blankico := True
+        blankico := true
     }
 
     Loop, %TCDir%\shellnew\*.*

        ThisMenuItem := RegExReplace(A_ThisMenuItem, "\t.*$")
        ThisMenuItem := StrReplace(ThisMenuItem, ":＆:", "&")

        if (TC64bit)
        {
            FixTCEditId()
        }

        ControlSetText, %TCEdit%, cd %ThisMenuItem%, ahk_class TTOTAL_CMD
        ControlSend, %TCEdit%, {enter}, ahk_class TTOTAL_CMD


TC_BeforeActionDo()
{
    WinGet, MenuID, ID, ahk_class #32768
    if MenuID
        return true
    ControlGetFocus, ctrl, ahk_class TTOTAL_CMD
    Ifinstring, ctrl, %TCListBox%
        return false
    return true
}

<TC_NormalMode>:
