20230303 2323 

 

REF

[1] "https://www.autohotkey.com/boards/viewtopic.php?t=1929" dynamic gui, adding more options

[2] "https://www.autohotkey.com/boards/viewtopic.php?t=44684" button adds another textbox in its place

 

EditCount := 1
	Gui, Add, Button, gbtn_add, &Add
	Gui, add, button, gbtn_submit x+0, &Submit
	Gui, add, button, gbtn_exit  x+0 yp, Exit[Ctrl+ESC]
	Gui, Add, Edit, w200 vzEdit%EditCount% xm, 
	Gui, Show
return

btn_add:
	EditCount++
	Gui, Add, Edit, w200 vzEdit%EditCount% xm, 
	Gui, Show, AutoSize, Test
return

btn_submit:
	Gui, submit, nohide  ;★ READ GUI DATA INPUTS
	loop %EditCount%
		zstr .= zEdit%A_Index%  "`n"  ; ★ ADD STRINGS IN A LOOP
	MsgBox,% zstr
return

btn_exit:
	ExitApp
return

return ;main
^ESC:: ExitApp
ExitApp ;main

output, screenshot

Posted by Weneedu
,


출처: https://privatedevelopnote.tistory.com/81 [개인노트]