             Menu, FileTemp, Icon, %ft%, %IconFilePath%, %IconFileIndex%
     }
 }
+
 ; 添加到文件模板中
-<AddToTempFiles>:
-    AddToTempFiles()
-return
-AddToTempFiles()
-{
+AddToTempFiles:
     ClipSaved := ClipboardAll
     Clipboard :=
-    GoSub, <cm_CopyFullNamesToClip>
+    Gosub, <cm_CopyFullNamesToClip>
     ClipWait, 2
-    if clipboard
-        AddPath := clipboard
+    if Clipboard
+        AddPath := Clipboard
     else
         return
-    clipboard := ClipSaved
+    Clipboard := ClipSaved
     if FileExist(AddPath)
         Splitpath, AddPath, filename, , FileExt, filenamenoext
     else

    if A_OSVersion in WIN_2000, WIN_XP
        Menu, FileTemp, Icon, 2 快捷方式, %A_WinDir%\system32\Shell32.dll, 30 ;我测试xp下必须是30
    else Menu, FileTemp, Icon, 2 快捷方式, %A_WinDir%\system32\Shell32.dll, 264 ;原来是264，xp下反正是有问题
    Menu, FileTemp, Add , 3 添加到新模板, <AddToTempFiles>
    Menu, FileTemp, Icon, 3 添加到新模板, %A_WinDir%\system32\Shell32.dll, -155
    FileTempMenuCheck()
    Menu, FileTemp, Show, %xn%, %yn%
}
; 检查文件模板功能
FileTempMenuCheck()
{

        {
            DelM := Mark[m]
            Menu, MarkMenu, Delete, %DelM%
            Menu, MarkMenu, Add, %mPath%, AddMark
            Mark[m] := mPath
            if (SaveMark <> 0)
            {
