Func _TalkOBJ($s_text) Local $o_speech = ObjCreate("SAPI.SpVoice") $o_speech.Speak($s_text) $o_speech = "" EndFunc $file = FileOpen("aiqing.txt", 0) ; 检查打开的文件是否可读 If $file = -1 Then MsgBox(0, "错误", "不能打开文件.") Exit EndIf ; 每次读取一行文本,直到文件结束. While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop _TalkOBJ($line) Wend FileClose($file) Exit
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-3-4 01:59 , Processed in 0.082283 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.