Evaluating arithmetic expressions in documents: Select it, and the Win-Alt-e HotKey puts the result after it. Like, in a week there are 7*24*60 = 10080 minutes. Here " = 10080" was written by the script. (In some editors the insertion point must be at the end of the expression, so select it from left-to-right.)
#!e:: ; Evaluates dynamic expression, Paste " = " <Result> Send ^c FileDelete $temp$.ahk ; Here will be the temp script written FileAppend #NoTrayIcon`nClipBoard:=%ClipBoard%, $temp$.ahk RunWait $temp$.ahk ; Run AHK to execute temp script Send {Right} = ^v ; Paste the result after the expression ReturnIf you want, save the current ClipBoard or ClipBoardAll in the beginning and restore it at the end. (With ClipBoardAll you have ugly side effects in MS Word and WordPerfect. Other programs seem to be OK with it.)