     ChangeCommand(-1)
 return
 
-GoToCommand:
+GotoCommand:
     ControlGetFocus, ctrl,
     if (ctrl == "Edit1")
     {

    ; tab +
    Hotkey, ~%key%, RunSelectedCommand2
    ; shift +
    Hotkey, ~+%key%, GoToCommand
}

; 用户映射的按键


    if (g_CurrentCommandList[index] != "")
    {
        ChangeCommand(index - 1, true)
    }
return

ChangeCommand(step, resetCurrentLine = false)
{
    ControlGetText, g_CurrentInput, Edit1

    if (resetCurrentLine || SubStr(g_CurrentInput, 1, 1) != "@")
    {
        g_CurrentLine := 1
    }

    g_CurrentLine := Mod(g_CurrentLine + step, g_CurrentCommandList.Length())
    if (g_CurrentLine == 0)
    {
        g_CurrentLine := g_CurrentCommandList.Length()
    }

    ; 重置当前命令
