But I'd like Farr to be my calculator.
Without bugging mouser to include this in Farr, i can just add a groups alias that has a regex that detects mathematics operators (something like: ((.*)+(.*))|((.*)-(.*))
And then, associate it with a ahk script that takes command line parameters, and have the group alias launch it with the expression that i type.
Up until now, everything is easy. The problem is, making the program that does the calc.
I tried something like:
[copy or print]
;Calc
if 0 < 1 ; if there are not command line parameters, exit
 ExitApp
Expr=
Loop %0%
 {
 counter := %a_index%
 Expr=%Expr%%counter%Â
 }
StringReplace CompleteExpr, Expr,`,,.,ReplaceAll
Result:=0 + Expr
MsgBox,.%Result%.
return
But the line "Result:=0 + Expr" isn't interpreted as i expected, Expr has to be a number, and it's an expression ;Calc
if 0 < 1 ; if there are not command line parameters, exit
 ExitApp
Expr=
Loop %0%
 {
 counter := %a_index%
 Expr=%Expr%%counter%Â
 }
StringReplace CompleteExpr, Expr,`,,.,ReplaceAll
Result:=0 + Expr
MsgBox,.%Result%.
return

Any ideas?
Or maybe some command line app that does this?
Hope you can help me! thanks!













Logged







And i prefer to just type ahead, usually, i want to know the result as fast as possible 



Lazlo has an AHK solution over at 

