From 64c5e14480ee35d9aad301f807eda21fa9fef67f Mon Sep 17 00:00:00 2001 From: Gore Liu Date: Sun, 24 Apr 2016 18:26:24 +0800 Subject: [PATCH] Show calc result if possible --- RunZ.ahk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RunZ.ahk b/RunZ.ahk index b7ea9be..d6a0982 100644 --- a/RunZ.ahk +++ b/RunZ.ahk @@ -925,6 +925,12 @@ SearchCommand(command = "", firstRun = false) if (result == "") { + if (IsLabel("Calc") && Eval(g_CurrentInput) != 0) + { + DisplayResult(Eval(g_CurrentInput)) + return + } + g_UseFallbackCommands := true g_CurrentCommand := g_FallbackCommands[1] g_CurrentCommandList := g_FallbackCommands