Page 1 of 1

Sum Calculator

Posted: Sat Jun 29, 2019 9:48 am
by Debugger
I am looking for a calculator that can calculate/sum many numbers in a multiline?

Example:
74-62=
72-28=
21-54=
66-40=
42-39=
67-36=
68-25=
71-24=
73-61=
09-13=

Re: Sum Calculator

Posted: Sun Jun 30, 2019 9:47 am
by therube
You'll need to lose the = & it doesn't like the leading 0 in 09, otherwise...

Code: Select all

C:\TMP\SEA\sed>\bin\unix\cat  calcset
74-62
72-28
21-54
66-40
42-39
67-36
68-25
71-24
73-61
09-13
C:\TMP\SEA\sed>calc  -f calcset
        12
        44
        -33
        26
        3
        31
        43
        47
        12
"./calcset", line 10: Badly formatted number
Error in commands

C:\TMP\SEA\sed>calc 9-13
        -4

C:\TMP\SEA\sed>

Re: Sum Calculator

Posted: Sun Jun 30, 2019 2:41 pm
by Debugger
Errors: (...) it is not recognized as an internal or external command,
executable program or batch file

Re: Sum Calculator

Posted: Sun Jun 30, 2019 3:12 pm
by therube
You'll need, calc-2.11.10.1-bin.zip & units-1.87-dep.zip (contains readline5.dll, a needed dependency).

Re: Sum Calculator

Posted: Mon Jul 01, 2019 10:43 am
by Debugger
I installed the executable file, but no change, the same error.

Re: Sum Calculator

Posted: Mon Jul 01, 2019 2:36 pm
by vsub
Autohotkey and the windows calculator

Code: Select all

Loop,parse,clipboard,`n
{
If A_LoopField =
break
Calc .= SubStr(A_LoopField,1,-2) "+"
}
Calc := SubStr(Calc,1,-1) "="
Clipboard := calc
Run,Calc
WinWaitActive,Calculator
Sleep,500
Send,^v
ExitApp
Copy the numbers from your post and run the script

Re: Sum Calculator

Posted: Mon Jul 01, 2019 2:46 pm
by Debugger
And what is Autohotkey and how to use it?