Code: Select all
Gui, Add, Text,, enter your name:
Gui, Add, Edit, vName
Gui, Add, Text,, enter your city:
Gui, Add, Edit, vCity
Gui, Add, Text,, enter your phone:
Gui, Add, Edit, vPhone
Gui, Show
return
Code: Select all
m::
WinGet, mywindow, ID, A
MsgBox, % mywindow
mydata:= "afdas"
guicontrol, mywindow:, Edit1, %mydata% ;the first data is the variable name associated with the edit field. the second %data% is thwe text to put in the field.
return