Calculator
Calculator
Hi, this is a calculator that I made!
Here's the link to it:
https://1drv.ms/u/s!AssKrEUmq8NOsVOw6V1gtLtwqc9f
Here's the link to it:
https://1drv.ms/u/s!AssKrEUmq8NOsVOw6V1gtLtwqc9f
- Attachments
-
- SimpleCalc.ahk
- (1.69 KiB) Downloaded 226 times
Re: Calculator
@Ben G - Thx for sharing it! .
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
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
Re: Calculator
Yes, I've done it before, but for some reason it wasn't working for me.
Re: Calculator
I can't seem to delete this post!
Well, we can leave it.
Well, we can leave it.
Last edited by Ben the Coder on 03 Jul 2022, 09:48, edited 1 time in total.
Re: Calculator
@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
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
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!
Sorry!
Re: Calculator
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
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
;==========================================
-
- Posts: 1
- Joined: 31 Jul 2022, 20:11
Re: Calculator
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?
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
I could do that, but it would be really hard (I think).
Good idea though!
Good idea though!