     {
         ControlSetText, Edit3, %g_CurrentCommand%
     }
-
-    return result
 }
 
 ClearInput:


SearchCommand(command = "", firstRun = false)
{
    ; 用空格来判断参数
    if (InStr(command, " ") && g_CurrentCommand != "")
    {
        Arg := SubStr(command, InStr(command, " ") + 1)
        return
    }

    result := ""
    order := g_FirstChar

    g_CurrentCommandList := Object()

    for index, element in g_Commands
    {


    if (result == "")
    {
        g_CurrentCommand := g_FallbackCommands[1]
        g_CurrentCommandList := g_FallbackCommands
        Arg := g_CurrentInput

        for index, element in g_FallbackCommands
        {
            if (index != 1)
            {
                result .= "`n"
            }

            result .= Chr(g_FirstChar - 1 + index++) . " | " . element 
        }
    }

    DisplayResult(result)
    return result
}

DisplayResult(result)
{
    DisplayText(result)

    if (g_CurrentCommandList.Length() == 1 && g_Conf.config.RunIfOnlyOne)
    {
        GoSub, RunCurrentCommand
    }
