Code:
Gui, Show, w300 h100, Text to Talk
Gui, Add, Text, x5 y5 w30 h20, Text:
Gui, Add, Edit, vTXT x40 y5 w245 R4,Type text in here, And Press TALK to loop saying it.
Gui, Add, Button, w60 h20, TALK
return
GuiClose:
FileDelete, %TEMPFILE%
ExitApp
ButtonTALK:
Gui, Submit, NoHide
TXT = it
TEMPFILE = %TEMP%\SayIt.vbs
IfExist, %TEMPFILE%
FileDelete, %TEMPFILE%
FileAppend, Dim Talk`nSet Talk = WScript.CreateObject("SAPI.SpVoice")`nTalk.Speak "%TXT%", %TEMPFILE%
Loop,
{
Runwait, %TEMPFILE%
}
Return
OnExit, GuiClose
Return
I'm also sorry if I have misuderstood your intentions
