     Gui, Show, , % g_WindowName
 return
 
+OpenContextMenu:
+    currentCommandText := "运行当前命令："
+    if (!g_CurrentLine > 0)
+    {
+        currentCommandText .= Chr(g_FirstChar)
+    }
+    else
+    {
+        currentCommandText .= Chr(g_FirstChar + g_CurrentLine - 1)
+    }
+    Menu, ContextMenu, Add, %currentCommandText%, RunCurrentCommand
+    Menu, ContextMenu, Add, 显示帮助(&A), Help
+    Menu, ContextMenu, Add, 编辑配置(&E), EditConfig
+    Menu, ContextMenu, Add, 重载文件(&S), ReloadFiles
+    Menu, ContextMenu, Add, 显示历史(&H), DisplayHistoryCommands
+    Menu, ContextMenu, Add, 重新启动(&R), RestartRunZ
+    Menu, ContextMenu, Add, 退出程序(&X), ExitRunZ
+    Menu, ContextMenu, Show
+    Menu, ContextMenu, DeleteAll
+return
+
 TabFunction:
     ControlGetFocus, ctrl,
     if (ctrl == g_InputArea)

DisplayText(text)
{
    textToDisplay := StrReplace(text, "`n", "`r`n")
    ControlSetText, %g_OutputArea%, %textToDisplay%
}

DisplayResult(result)

return

Test:
    MsgBox, 测试
return

HomeKey:
