Code: Select all
(new test())
class test {
__New() {
static
Gui Add, Edit, vEdtValue x34 y33 w120 h21
Gui Add, Button, x36 y76 w80 h23 HWNDhandlehwnd_Kaydet, &OK
BF_Kaydet := ObjBindMethod(this, "Kaydet")
GuiControl, +g, % handlehwnd_Kaydet, % BF_Kaydet
Gui Show, w620 h420, Window
}
Kaydet() {
Gui, submit, NoHide
msgbox % this.EdtValue
}
}