 
     if (result == "")
     {
-        if (SubStr(command, 1, 1) == ";")
-        {
-            g_CurrentCommand := g_FallbackCommands[1]
-            g_CurrentCommandList.Insert(g_CurrentCommand)
-            result .= "a | " . g_CurrentCommand
-            Arg := SubStr(g_CurrentInput, 2)
-        }
-        else if (SubStr(command, 1, 1) == ":")
-        {
-            g_CurrentCommand := g_FallbackCommands[2]
-            g_CurrentCommandList.Insert(g_CurrentCommand)
-            result .= "a | " . g_CurrentCommand
-            Arg := SubStr(g_CurrentInput, 2)
-        }
-        else
-        {
-            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 
-            }
-        }
-    }
-
+        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 (order - g_FirstChar == 1 && g_Conf.config.RunIfOnlyOne)
+    if (g_CurrentCommandList.Length() == 1 && g_Conf.config.RunIfOnlyOne)
     {
         GoSub, RunCurrentCommand
     }


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
    {

    {
        ControlSetText, Edit3, %g_CurrentCommand%
    }
}

ClearInput:
