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

Ask gaming related questions (AHK v1.1 and older)
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

07 Oct 2018, 09:20

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: yuu453 and 65 guests