     ; 用于注册插件
     LoadPlugin(PluginName)
     {
-        If this.PluginList[PluginName]
+        if this.PluginList[PluginName]
             return this.PluginList[PluginName]
         p := new __Plugin(PluginName)
         this.PluginList[PluginName] := p
         back := this.ActionFromPluginName
         this.ActionFromPluginName := PluginName
         p.CheckSub()
-        If p.Error
-        {
-            msgbox load plugin "%PluginName%" error
+        if p.Error
+        {
+            MsgBox load plugin "%PluginName%" error
             this.ActionFromPluginName := back
         }
     }
 
-    ; SetPlugin(PluginName, Author="", Ver="", Comment="") {{{2
+    ; SetPlugin(PluginName, Author = "", Ver = "", Comment = "") {{{2
     ; 设置Plugin信息
-    SetPlugin(PluginName, Author="", Ver="", Comment="")
+    SetPlugin(PluginName, Author = "", Ver = "", Comment = "")
     {
         p := this.PluginList[PluginName]
         p.Author := Author

        this.HotString := HotString
        this.Type := 3
    }
    ; SetMaxTimes(Times) {{{2
    ; 设置最大运行次数
    SetMaxTimes(Times)
    {
        this.MaxTimes := Times
    }
    ; Do(Times=1) {{{2
    ; 执行Action
    Do(Times=0)
    {
        Times := !Times ? 1 : Times    
        If this.MaxTimes And ( Times > this.MaxTimes)
                Times := this.MaxTimes
        Loop, %Times%
        {
            If this.Type = 0
            {
                If IsLabel(l:=this.Name)
                    GoSub, %l%
            }
            If this.Type = 1
            {
                If IsFunc(f:=this.Function)
                    %f%()
            }
            If this.Type = 2
            {
                c := this.CmdLine
                Run, %cmd%
            }
            If This.Type = 3
            {
                t := this.HotString
                Send, %t%

        ; 获取当前的热键
        k := this.CheckCapsLock(this.Convert2VIM(A_ThisHotkey))
        ; 如果winName在排除窗口中，直接发送热键
        if this.ExcludeWinList[winName] {
            Send, % this.Convert2AHK(k, ToSend := true)
            return
        }
        ; 如果当前热键在当前winName无效，判断全局热键中是否有效？
        winObj := this.GetWin(winName)
        if Not winObj.KeyList[A_thisHotkey]
        {
            winObj := this.GetWin()
            if Not winObj.KeyList[A_thisHotkey]
            {
                ; 无效热键，按普通键输出
                Send, % this.Convert2AHK(k, ToSend := true)
                return
            }
            else
                winName := ""
        }

        this.LastFoundWin := winName
        ; 执行在判断热键前的函数, 如果函数返回true，按普通键输出
        if IsFunc(f := winObj.BeforeActionDoFunc)
        {
            if %f%()
            {
                Send, % this.Convert2AHK(k, ToSend := true)
                return
            }
        }
