I've never done this before...
But, I want to have a msgbox popup that asks for 3 inputs say.
I then want to execute simple code using this 3 variables?
I'm guessing this is simple
Can someone show me code to start me off?
Thanks
How to get input from msgbox and use as variables in code?
Re: How to get input from msgbox and use as variables in code?
You can ...
a) create a single
InputBox that asks for three (delimiter separated) items
b) create 3 consecutively appearing InputBoxes
c) create a custom made Gui holding three edit fields.
a) create a single

b) create 3 consecutively appearing InputBoxes
c) create a custom made Gui holding three edit fields.
Code: Select all
InputBox, var , Title, Enter 3 comma separated values!
v := StrSplit(var,",")
MsgBox % v.1
MsgBox % v.2
MsgBox % v.3
Re: How to get input from msgbox and use as variables in code?
@BoBo Thanks
The solution you gave will do perfectly for now
The other 2 I assume are a bit more complicated?

The solution you gave will do perfectly for now
The other 2 I assume are a bit more complicated?
Re: How to get input from msgbox and use as variables in code?
Not necessarily ...
Concept.
Code: Select all
InputBox, v1 , Title, Enter value one!
InputBox, v2 , Title, Enter value two!
InputBox, v3 , Title, Enter value three!
MsgBox % v1
MsgBox % v2
MsgBox % v3
Code: Select all
Gui, -Caption +Border
Gui, Add, Edit, vE1 y8 w130,% "<Enter a value>"
Gui, Add, Edit, vE2 wp,% "<Enter a value>"
Gui, Add, Edit, vE3 wp,% "<Enter a value>"
Gui, Add, Button, gButton,% "OK"
Gui, Show, w150,% chr(32)
Return
Button:
Gui, Submit, Destroy ; NoHide
MsgBox % E1 "`n" E2 "`n" E3
Return
GuiClose:
GuiEscape:
ExitApp