 {
     key := Chr(g_FirstChar + A_Index - 1)
     ; lalt +
-    Hotkey, !%key%, RunSelectedCommand1
+    Hotkey, !%key%, RunSelectedCommand
     ; tab +
-    Hotkey, ~%key%, RunSelectedCommand2
+    Hotkey, ~%key%, RunSelectedCommand
     ; shift +
     Hotkey, ~+%key%, GotoCommand
 }

    }
}

RunSelectedCommand1:
    index := Asc(SubStr(A_ThisHotkey, 0, 1)) - g_FirstChar + 1

    RunCommand(g_CurrentCommandList[index])
return

RunSelectedCommand2:
    ControlGetFocus, ctrl,
    if (ctrl == g_InputArea)
    {
        return
    }

    index := Asc(A_ThisHotkey) - g_FirstChar + 1

    RunCommand(g_CurrentCommandList[index])
return

if (g_Conf.Gui.ShowTrayIcon)
{
    Menu, Tray, Icon
    Menu, Tray, NoStandard
    Menu, Tray, Add, 帮助(&H), KeyHelp
    Menu, Tray, Add, 重启(&R), RestartRunZ
    Menu, Tray, Add, 退出(&X), ExitRunZ
}

Menu, Tray, Icon, %A_ScriptDir%\RunZ.ico
