## Trying to make a calculator with what is in the edit boxes be the values but I don't know how to do it Topic is solved

Yeetuso

### Trying to make a calculator with what is in the edit boxes be the values but I don't know how to do it  Topic is solved

Gui, Add, Button, x222 y19 w-80 h-10 , Button

Gui, Add, Text, x12 y19 w250 h20 , Welcome to Un's Private Duel Calculator

Gui, Add, Edit, x22 y59 w90 h20 re, Insert Card
Gui, Add, Edit, x22 y99 w90 h20 te, # in Deck
Gui, Show, x565 y75 h139 w254, Duel Calculator
Gui, Show, x565 y75 h139 w254, Duel Calculator
Gui, Add, Button, h22 w90 x125 y78 , Calculate!
Gui,+AlwaysOnTop
Return

GuiClose:
ExitApp

Calculate!:
Gui, Submit, NoHide
If InStr(re, ",")
for k, val in StrSplit(re, ",", " ")
v := StrSplit(val, "=", " ").1 , %v% := StrSplit(val, "=", " ").2
else
v := StrSplit(re, "=", " ").1 , %v% := StrSplit(re, "=", " ").2
ListVars ; test line to view current defined variables
return

If InStr(te, ",")
for k, val in StrSplit(te, ",", " ")
v := StrSplit(val, "=", " ").1 , %v% := StrSplit(val, "=", " ").2
else
v := StrSplit(te, "=", " ").1 , %v% := StrSplit(te, "=", " ").2
ListVars ; test line to view current defined variables
return
Gio
Posts: 485
Joined: 30 Sep 2013, 10:54
Location: Brazil

### Re: Trying to make a calculator with what is in the edit boxes be the values but I don't know how to do it

Mod bump (post approved on page 2)
"What is suitable automation? Whatever saves your day for the greater matters."
Barcoder - Create QR Codes and other Barcodes using only Autohotkey !!