diff --git a/Core/Functions.ahk b/Core/Functions.ahk index 378ccc5..9b52098 100644 --- a/Core/Functions.ahk +++ b/Core/Functions.ahk @@ -75,17 +75,6 @@ Clip: DisplayResult("剪切板内容长度 " . StrLen(clipboard) . " :`n`n" . clipboard) return -EditConfig: - if (g_Conf.Config.Editor != "") - { - Run, % g_Conf.Config.Editor " """ g_ConfFile """" - } - else - { - Run, % g_ConfFile - } -return - CNY2USD: DisplayResult("查询中,可能会比较慢或者查询失败,请稍后...") DisplayResult(QueryCurrencyRate("CNY", "USD", Arg)) diff --git a/RunZ.ahk b/RunZ.ahk index 4108b03..f5ab1ea 100644 --- a/RunZ.ahk +++ b/RunZ.ahk @@ -187,6 +187,7 @@ Hotkey, Tab, TabFunction Hotkey, f1, Help Hotkey, +f1, KeyHelp Hotkey, f2, EditConfig +Hotkey, f3, EditAutoConfig Hotkey, ^q, RestartRunZ Hotkey, ^l, ClearInput Hotkey, ^d, OpenCurrentFileDir @@ -614,6 +615,29 @@ ReindexFiles: GoSub, CleanupRank return +EditConfig: + if (g_Conf.Config.Editor != "") + { + Run, % g_Conf.Config.Editor " """ g_ConfFile """" + } + else + { + Run, % g_ConfFile + } +return + +EditAutoConfig: + if (g_Conf.Config.Editor != "") + { + Run, % g_Conf.Config.Editor " """ g_AutoConfFile """" + } + else + { + Run, % g_AutoConfFile + } +return + + ProcessInputCommand: ControlGetText, g_CurrentInput, %g_InputArea%