Page 1 of 1

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

Posted: 07 Oct 2018, 09:20
by Yeetuso
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

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

Posted: 08 Oct 2018, 08:53
by Gio
Mod bump (post approved on page 2)