Page 1 of 1

Calculator

Posted: 28 Jun 2022, 09:50
by Ben the Coder
Hi, this is a calculator that I made!
Here's the link to it:
https://1drv.ms/u/s!AssKrEUmq8NOsVOw6V1gtLtwqc9f

Re: Calculator

Posted: 28 Jun 2022, 10:43
by BoBo
@Ben G - Thx for sharing it! :thumbup: .
BTW, you can also upload your scripts to this forum as an attachment to your posting (done on your behalf so you can see it. Feel free to delete it if not fine with you). HTH 8-)

Re: Calculator

Posted: 28 Jun 2022, 12:39
by Ben the Coder
Yes, I've done it before, but for some reason it wasn't working for me.

Re: Calculator

Posted: 28 Jun 2022, 15:29
by Ben the Coder
I can't seem to delete this post!
Well, we can leave it.

Re: Calculator

Posted: 02 Jul 2022, 21:25
by boiler
@Ben G - Executables shared on this forum must be accompanied by their source code. Please post the source code for new version as well if you would like to keep the link to the executable in your post. You can post the source .ahk file in a code box, as an attachment, or in your OneDrive link (or a link to some other repository).

Re: Calculator

Posted: 03 Jul 2022, 09:42
by Ben the Coder
Oh, I see. I'll do that in a sec.

Re: Calculator

Posted: 03 Jul 2022, 09:46
by Ben the Coder
Nope, I can't do it. I'll delete the exe file now.

Re: Calculator

Posted: 03 Jul 2022, 11:27
by boiler
You can’t post the source AHK code or you don’t want to? It’s very easy to post the code in a code box here in a post. I can show you how if you would like.

Re: Calculator

Posted: 03 Jul 2022, 13:24
by Ben the Coder
I know how to, but I don't have it anymore (I only have the new, slightly buggy, and non-finished version). So I only have the exe file from that previous version.
Sorry!

Re: Calculator

Posted: 03 Jul 2022, 14:00
by garry
we have your ahk script , works fine , only 2ndTAB ( convert ) seems not finished , I think
if you have your new Easycalc.exe maybe it's possible to convert back to > Easycalc.ahk

Code: Select all

#Warn
#SingleInstance Force
Gui, Add, Tab2,, Math|Convert
Gui, Font, s12, Arial Nova
;--------------------------
Gui, Add, Text,, Input first number:
Gui, Add, Text,, Choose operator:
Gui, Add, Text,, Input second number:
;-
Gui, Add, Edit, vC1 ym ,20    ;-for test can overwrite
Gui, Add, DropDownList, vOperator, +|-|*|/|^
Gui, Add, Edit, vC2 ,11   ; for test 
;-
Gui, Add, Button, default gA1,CALCULATE
;-
;- next TAB ( not used at moment ) ---
Gui, Tab, 2
Gui, Add, DropDownList, vTypeunit, Temperature|Distance|Mass/Weight|Speed
Gui, Add, ListBox, vTest, Celsius|Fahrenheit|Kelvin
;-
Gui, Show,, SimpleCalc
GuiControl,1: ChooseString,operator,+   ;- for test 
return
;-------------
GuiClose:
Exitapp
;-------------
A1:
Gui, Submit,nohide
result:=""
Switch, Operator
{
Case "+":Result := C1 + C2
Case "*":Result := C1 * C2
Case "-":Result := C1 - C2
Case "/":Result := C1 / C2
Case "^":Result := C1 ** C2
}
MsgBox,% "The answer is: " Result
return
;==========================================

Re: Calculator

Posted: 05 Jul 2022, 09:34
by Ben the Coder
Ok, thanks! I'll try it. :D

Re: Calculator

Posted: 31 Jul 2022, 20:13
by marcelosl240485
I don't have enough knowledge to create this script, but if anyone is interested in the idea, I'll share it here.

The idea is that if the script is enabled, when typing a number on the numpad, windows responds with voice indicating the typed number.

The purpose is to prevent misclick because the voice is one more item for you have focus on the key you typed.

- For example, you want to type "428", but you made a mistake and without realizing it you type "458".

Then the sound could make you realize the wrong and you can fix it, preventing a miscalculation.

perhaps useless and inconvenient?

Re: Calculator

Posted: 01 Aug 2022, 09:21
by Ben the Coder
I could do that, but it would be really hard (I think).
Good idea though! :D