Code: Select all
1::{
Title := WinGetTitle('A')
TableC := Gui('+AlwaysOnTop +ToolWindow', Title)
TableC.Add('Text',, 'Batch name:')
TableC.Add('Text',, 'Clones amount:')
TableC.Add('Edit', 'vBatchName ym')
TableC.Add('Edit', '+Number vClonesAmount w95')
TableC.Add('Edit', '+Number vStartingPosition x190 y32 w22 Center', '1')
TableC.Add('Text', 'xm', 'Duplicate of Edit control "vBatchName"') ; Here I want to duplicate the text of the "vBatchName" variable while editing.
TableC.Add('Button', 'Default x8 y85 w102 h35', 'OK').OnEvent('Click', ProcessUserInput)
TableC.Add('Button', 'x112 y85 w102 h35', 'Close').OnEvent('Click', Close)
TableC.Show()
ProcessUserInput(*) {
}
Close(*) {
WinClose()
}
}